public enum ProgressMode extends Enum<ProgressMode>
|Enum Constant and Description|
When registering the
|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 ProgressMode CURRENT_CHANGES
ProgressListener, it will record the current size of changes, and will only continue to report progress updates until those changes have been either downloaded or uploaded. After that the progress listener will not report any further changes.
This means that listeners registered in this mode should be done before changes are written to the Realm.
Progress reported in this mode will only ever increase.
This is useful when e.g. reporting progress when downloading a Realm for the first time.
public static final ProgressMode INDEFINITELY
ProgressListenerregistered in this mode, will continue to report progress changes, even if changes are being added after the listener was registered.
Progress reported in this mode can both increase and decrease, e.g. if large amounts of data is written after registering the listener.
This is useful when you want to track if all changes have been uploaded to the server from the device.
public static ProgressMode values()
for (ProgressMode c : ProgressMode.values()) System.out.println(c);
public static ProgressMode 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