State

enum State : Enum<SyncSession.State>

The possible states for SyncSession to be.

A Realm will automatically synchronize data with the server if the session is either ACTIVE or DYING and is connected.

Entries

WAITING_FOR_ACCESS_TOKEN
Link copied to clipboard

The user is attempting to synchronize data but needs a valid access token to do so. Realm will either use a cached token or automatically try to acquire one based on the current users login. This requires a network connection.

DYING
Link copied to clipboard

The Realm was closed, but still contains data that needs to be synchronized to the server. The session will attempt to upload all local data before going INACTIVE.

PAUSED
Link copied to clipboard

The Realm is open and has a connection to the server, but no data is allowed to be transferred between the device and the server. Call SyncSession.resume to start transferring data again. The state will then become ACTIVE.

ACTIVE
Link copied to clipboard

The Realm is open and data will be synchronized between the device and the server if the underlying connection is connected.

INACTIVE
Link copied to clipboard

This is the initial state. The session is closed. No data is being synchronized. The session will automatically transition to ACTIVE when a Realm is opened.

Properties

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