ConnectionState

enum ConnectionState : Enum<ConnectionState>

A connection state indicates the state of the underlying connection of the SyncSession.

Entries

CONNECTED
Link copied to clipboard

Indicates that a connection is successfully established to the server. If the SyncSession is SyncSession.State.ACTIVE then data will now be transferred between the device and the server.

CONNECTING
Link copied to clipboard

Indicates that a connection is currently in progress of being established. If successful the next state is CONNECTED, otherwise it will be DISCONNECTED.

DISCONNECTED
Link copied to clipboard

Indicates that there is no connection to the server. No data is being transferred even if the session is SyncSession.State.ACTIVE. If the connection entered this state due to an error, the error is reported in the SyncConfiguration.errorHandler.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int