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

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.

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.

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.

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.

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.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.