ReadonlyconfiguredThe configured default foreground mode (from config, not auto-promoted).
Closes the data manager. Any active connections are closed.
Get the currently resolved connection mode.
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.
Called to reject the identify operation.
Called to complete the identify operation.
The context being identified.
OptionalidentifyOptions: LDIdentifyOptions
Options for identification.
OptionalsetUpdate 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.
Set an explicit connection mode override that bypasses all automatic behavior (transition table, streaming, lifecycle). Pass undefined to clear the override and return to automatic behavior.
Optionalmode: FDv2ConnectionModeSet a callback to flush pending analytics events. Called immediately (not debounced) when the lifecycle transitions to background.
OptionalsetForce 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.
Optionalstreaming: booleanUpdate the pending lifecycle state. Goes through debounce.
Update the pending network state. Goes through debounce.
The public interface returned by createFDv2DataManagerBase. Extends DataManager with mode control methods.