page-active - v1.0.2
    Preparing search index...

    Function listenToPageActivation

    • Listen to changes in page activation.

      Parameters

      • fireImmediately: boolean

        If true, the callback will immediately be fired with whatever the current value is.

      • listener: (isPageActive: boolean) => void | Promise<void>

        This listener will be called any time the page activation changes.

      Returns RemoveListenerCallback

      A callback used to remove the listener.