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

    Interface ModeState

    Input state used by the mode resolution table to determine the connection mode. The caller is responsible for computing the effective foregroundMode before consulting the table — for example, browser listener-driven streaming logic modifies foregroundMode externally.

    interface ModeState {
        backgroundMode: FDv2ConnectionMode;
        foregroundMode: FDv2ConnectionMode;
        lifecycle: LifecycleState;
        networkAvailable: boolean;
    }
    Index
    backgroundMode: FDv2ConnectionMode

    The effective background connection mode. This is the mode the SDK should use when in the background and online. Only meaningful on mobile platforms.

    foregroundMode: FDv2ConnectionMode

    The effective foreground connection mode. This is the mode the SDK should use when in the foreground and online. The caller computes this from user configuration, platform defaults, and any platform-specific logic (e.g., browser listener-driven streaming promotion).

    lifecycle: LifecycleState

    Application lifecycle state.

    networkAvailable: boolean

    Whether the device has network connectivity.