@launchdarkly/js-client-sdk-common - v1.35.0
    Preparing search index...

    Interface AutomaticModeSwitchingConfig

    Granular control over which platform events trigger automatic mode switches.

    This interface is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. https://launchdarkly.com/docs/sdk/features/data-saving-mode

    interface AutomaticModeSwitchingConfig {
        lifecycle?: boolean;
        network?: boolean;
        type: "automatic";
    }
    Index
    lifecycle?: boolean

    Whether to automatically switch modes in response to application lifecycle events (foreground/background on mobile, visibility changes on browser).

    true on mobile, false on browser/desktop
    
    network?: boolean

    Whether to automatically pause/resume data sources in response to network availability changes.

    true on mobile, false on desktop
    
    type: "automatic"

    Discriminant — selects automatic mode switching.