public static enum SyncSession.State extends Enum<SyncSession.State>
A Realm will automatically synchronize data with the server if the session is either
|Enum Constant and Description|
The Realm is open and data will be synchronized between the device and the server if the underlying connection is
The Realm was closed, but still contains data that needs to be synchronized to the server.
This is the initial state.
The user is attempting to synchronize data but needs a valid access token to do so.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final SyncSession.State INACTIVE
WAITING_FOR_ACCESS_TOKENwhen a Realm is opened.
public static final SyncSession.State WAITING_FOR_ACCESS_TOKEN
Data cannot be synchronized in this state.
Once a valid token is acquired, the session will transition to
public static final SyncSession.State ACTIVE
The session will remain in this state until either the current login expires or the Realm
is closed. In the first case, the session will transition to
in the second case, it will become
public static final SyncSession.State DYING
public static SyncSession.State values()
for (SyncSession.State c : SyncSession.State.values()) System.out.println(c);
public static SyncSession.State valueOf(String name)
name- the name of the enum constant to be returned.
IllegalArgumentException- if this enum type has no constant with the specified name
NullPointerException- if the argument is null