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

    Interface DataSourceStatusManager

    Tracks the current data source status and emits updates when the status changes.

    interface DataSourceStatusManager {
        status: DataSourceStatus;
        reportError(
            kind: DataSourceErrorKind,
            message: string,
            statusCode?: number,
            recoverable?: boolean,
        ): void;
        requestStateUpdate(state: DataSourceState): void;
    }
    Index
    • Reports a datasource error to this manager. Since the DataSourceStatus includes error information, it is possible that that a DataSourceStatus update is emitted with the same DataSourceState.

      Parameters

      • kind: DataSourceErrorKind

        of the error

      • message: string

        for the error

      • OptionalstatusCode: number

        of the error if there was one

      • Optionalrecoverable: boolean

        to indicate that the error is anticipated to be recoverable

      Returns void

    • Requests the manager move to the provided state. This request may be ignored if the current state cannot transition to the requested state.

      Parameters

      Returns void