public static enum Subscription.State extends Enum<Subscription.State>
Enum Constant and Description |
---|
ACTIVE
The subscription has been processed by the Realm Object Server and data is being synced
to the device.
|
ERROR
An error occurred while creating or processing the subscription.
|
INVALIDATED
The subscription has been removed.
|
PENDING
The subscription has been created, but has not yet been processed by the sync
server.
|
Modifier and Type | Method and Description |
---|---|
Byte |
getValue()
Returns the native value representing this state.
|
static Subscription.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Subscription.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Subscription.State ERROR
Subscription.getErrorMessage()
for details on what went wrong.public static final Subscription.State PENDING
public static final Subscription.State ACTIVE
public static final Subscription.State INVALIDATED
public static Subscription.State[] values()
for (Subscription.State c : Subscription.State.values()) System.out.println(c);
public static Subscription.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 nameNullPointerException
- if the argument is nullpublic Byte getValue()