offline property

bool offline

Returns whether the SDK is currently configured not to make network connections.

This is specifically if the client has been set offline, or has been instructed to never go online.

For more detailed status information use dataSourceStatus.

Implementation

bool get offline => _client.offline;
void offline=(bool offline)

Set the SDK to be offline/offline. When the SDK is set offline it will stop receiving updates and sending analytic and diagnostic events.

Implementation

set offline(bool offline) {
  _connectionManager.offline = offline;
}