Datasync State
data class DatasyncState(isReachable: Boolean, connectionState: DatasyncState.ConnectionState, authenticationState: AuthenticationEvent.AuthenticationState)
Content copied to clipboard
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.
Constructors
DatasyncState
Link copied to clipboard
fun DatasyncState(isReachable: Boolean, connectionState: DatasyncState.ConnectionState, authenticationState: AuthenticationEvent.AuthenticationState)
Content copied to clipboard
Types
ConnectionState
Link copied to clipboard
sealed class ConnectionState
Content copied to clipboard
Represents the state of the real-time connection (web-socket) of a DatasyncService to the Webcom back end.
Functions
Properties
authenticationDetails
Link copied to clipboard
All the properties that describe the authenticated user if isAuthenticated returns
true
or null
otherwise (no user is authenticated).authenticationState
Link copied to clipboard
State of the user authentication maintained on the real time connection (web-socket) of the DatasyncService to the Webcom back end.
connectionState
Link copied to clipboard
State of the real time connection (web-socket) of the DatasyncService to the Webcom back end.
isReachable
Link copied to clipboard