Hierarchy

  • DataManager

Implemented by

Methods

  • This function handles the data management aspects of the identification process.

    Implementation Note: The identifyResolve and identifyReject function resolve or reject the identify function at LDClient level. It is likely in individual implementations that these functions will be passed to other components, such as a datasource, do indicate when the identify process has been completed. The data manager identify function should return once everything has been set in motion to complete the identification process.

    Parameters

    • identifyResolve: (() => void)

      Called to reject the identify operation.

        • (): void
        • Returns void

    • identifyReject: ((err) => void)

      Called to complete the identify operation.

        • (err): void
        • Parameters

          • err: Error

          Returns void

    • context: Context

      The context being identified.

    • Optional identifyOptions: LDIdentifyOptions

      Options for identification.

      Optional

    Returns Promise<void>

  • Update the automatic streaming state based on whether change listeners are registered. When true and forced streaming is not set, the data manager should activate streaming.

    Optional — only browser data managers implement this.

    Parameters

    • streaming: boolean

    Returns void

  • Set a callback to flush pending analytics events. Called immediately (not debounced) when the lifecycle transitions to background.

    Optional — only FDv2 data managers implement this.

    Parameters

    • callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Force streaming on or off. When true, the data manager should maintain a streaming connection. When false, streaming is disabled. When undefined, the forced state is cleared and automatic behavior takes over.

    Optional — only browser data managers implement this.

    Parameters

    • Optional streaming: boolean
      Optional

    Returns void

Generated using TypeDoc