Package io.objectbox.sync
Enum Class SyncBuilder.RequestUpdatesMode
- All Implemented Interfaces:
Serializable
,Comparable<SyncBuilder.RequestUpdatesMode>
,Constable
- Enclosing class:
- SyncBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnce logged in, requests sync updates automatically including subsequent pushes for data changes.Once logged in, requests updates automatically once without subsequent pushes for data changes.Once logged in, does not request any sync updates automatically. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SyncBuilder.RequestUpdatesMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANUAL
Once logged in, does not request any sync updates automatically.Sync updates will have to be requested manually.
-
AUTO
Once logged in, requests sync updates automatically including subsequent pushes for data changes. This is the default. -
AUTO_NO_PUSHES
Once logged in, requests updates automatically once without subsequent pushes for data changes.After the initial sync update, further updates will have to be requested manually.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-