Granular control over which platform events trigger automatic mode switches.

This interface is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. https://launchdarkly.com/docs/sdk/features/data-saving-mode

Hierarchy

  • AutomaticModeSwitchingConfig

Properties

Properties

lifecycle?: boolean

Whether to automatically switch modes in response to application lifecycle events (foreground/background on mobile, visibility changes on browser).

Default Value

true on mobile, false on browser/desktop
network?: boolean

Whether to automatically pause/resume data sources in response to network availability changes.

Default Value

true on mobile, false on desktop
type: "automatic"

Discriminant — selects automatic mode switching.

Generated using TypeDoc