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

DatasyncState

class DatasyncState

Represents some state indicators about a DatasyncService instance.

Such a state must be read using the DatasyncManager.subscribeToStateChange method on any DatasyncManager instance of the targeted DatasyncService.

Properties

isAuthenticated

val isAuthenticated: Boolean

true if and only if a user is authenticated on the DatasyncService

isConnected

val isConnected: Boolean

true if and only if the DatasyncService holds a successful websocket to the Webcom back end

isReachable

val isReachable: Boolean

true if and only if the running device has network connectivity

serverTimeOffset

val serverTimeOffset: Int

gives the difference between the Webcom back end clock and the running device clock (expressed in milliseconds)