Amplify JS API Documentation
    Preparing search index...

    Interface ServiceWorkerOptions

    interface ServiceWorkerOptions {
        onStateChange?: ServiceWorkerStateChangeHandler;
    }
    Index

    Properties

    Properties

    Optional handler invoked on every service worker statechange event.

    When provided, this handler replaces the built-in Pinpoint auto-recording: the built-in analytics event is only recorded when no handler is supplied, which prevents duplicate telemetry for the same state change.