Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / DatasyncService / shouldBeConnected

shouldBeConnected

val shouldBeConnected: Boolean

Indicates whether the DatasyncService tries to establish connection to the Webcom back end.

When true, the connection to the Webcom back end is not guaranteed, especially if the network connectivity is down or the Webcom back end unreachable. The DatasyncService starts a retry mechanism as soon as the connection is lost, until it is actually established.

To get the actual state of the connection, use DatasyncState.isConnected. The DatasyncService works in online mode as soon as the connection to the Webcom back end is effective or in offline mode otherwise.