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.

Types

Link copied to clipboard
sealed class ConnectionState

Represents the state of the real-time connection (web-socket) of a DatasyncService to the Webcom back end.

Properties

Link copied to clipboard
open override val appId: String

Identifier of the WebcomApplication this Notification relates to.

Link copied to clipboard
Link copied to clipboard

All the properties that describe the authenticated user if isAuthenticated returns true or null otherwise (no user is authenticated).

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. If the connection is in the ConnectionState.Disconnected state, this indicates the authentication state that will be restored when the connection will be re-established.

Link copied to clipboard

State of the real time connection (web-socket) of the DatasyncService to the Webcom back end.

Link copied to clipboard
open override val data: DatasyncState

The event conveyed by this DataNotification.

Link copied to clipboard

true if and only if the running device has network connectivity.

Link copied to clipboard
open override val path: String

Path of the data this Notification relates to, or "" if it doesn't relate to any data node.

Functions

Link copied to clipboard

Indicates whether a user is actually authenticated on the real time connection to the Webcom back end.

Link copied to clipboard

Indicates whether the real time connection to the Webcom back end is established.