• This function can be used to call a custom interceptor function before the share is executed.
    The share is waiting until the interceptor function has finished or the timeout has elapsed.
    This function can only be called once. Every other call will be rejected!

    Example

    CfgrUtils.interceptShare(async () => {
    await generateScreenshot();
    });

    Parameters

    • interceptorFn: (() => Promise<void>)

      The intercepting function.

        • (): Promise<void>
        • Returns Promise<void>

    • Optional timeoutMS: number

      Timeout value in ms.
      Original share will be called after this timeout, even interceptor function is still pending.

    Returns void

Generated using TypeDoc