Enum ProgressMode
On this page
io.realm.mongodb.sync
Enum describing how to listen to progress changes.
Enum Constant Summary
Enum Constant and Description |
---|
When registering the 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. |
A ProgressListener registered in this mode, will continue to report progress changes, even if changes are being added after the listener was registered. |
Method Summary
Modifier and Type | Method and Description |
---|---|
public static ProgressMode | |
public static ProgressMode | values () |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass
,hashCode
,equals
,clone
,toString
,notify
,notifyAll
,wait
,wait
,wait
,finalize
Methods inherited from class java.lang.Enum :
name
,ordinal
,toString
,equals
,hashCode
,clone
,compareTo
,getDeclaringClass
,valueOf
,finalize
Enum Constant Detail
CURRENT_CHANGES
public static final ProgressMode
When registering the 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.
INDEFINITELY
public static final ProgressMode
A ProgressListener registered 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.
Method Detail
valueOf
values
public static ProgressMode values () |
---|