enableNetworkChangeDetection

View as MarkdownOpen in Claude
1get enableNetworkChangeDetection(): boolean
2set enableNetworkChangeDetection(value): void

Whether browser network change detection (online/offline) is enabled.

Parameters

value
boolean

If true, the SDK reacts to network-change events (e.g. Wi-Fi/cellular switch).

Examples

1console.log(client.preferences.enableNetworkChangeDetection);