@launchdarkly/react-native-client-sdk - v10.23.4
    Preparing search index...

    Interface StateDebounceManager

    Manages debouncing of network availability, lifecycle, and connection mode change events. Each event updates the relevant component of the pending state and resets the debounce timer. When the timer fires, the reconciliation callback is invoked with the final combined pending state.

    identify() does NOT participate in the debounce window (CONNMODE spec 3.5.6). Consumers must handle identify separately.

    interface StateDebounceManager {
        close(): void;
        setLifecycleState(state: LifecycleState): void;
        setNetworkState(state: NetworkState): void;
        setRequestedMode(mode: FDv2ConnectionMode): void;
    }
    Index
    • Cancel any pending debounce timer and release resources. After close(), further calls to set* methods will not trigger reconciliation.

      Returns void

    • Update the pending lifecycle state. Resets the debounce timer.

      Parameters

      • state: LifecycleState

      Returns void

    • Update the pending network state. Resets the debounce timer.

      Parameters

      Returns void

    • Update the pending connection mode. Resets the debounce timer. This is how setConnectionMode() participates in debouncing (CONNMODE spec 3.5.5).

      Parameters

      Returns void