Enum WaitForSyncMode
An enum controlling when query.
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
public enum WaitForSyncMode
Remarks
When the [Subscription] is created for the first time, data needs to be downloaded from the
server before it becomes available, so depending on whether you run the query against the local
database before or after this has happened, you query results might not look correct.
This enum thus defines the behaviour of when the query is run, so it possible to make the
appropriate tradeoff between correctness and availability.
Fields
Name | Description |
---|---|
FirstTime | This mode will wait for the server data the first time a subscription is created before
returning the local query. Later calls to query. |
Always | With this mode enabled, Realm will always download the latest server state before returning from
query. |
Never | With this mode enabled, Realm will always return as soon as the the subscription is created
while any server data is being downloaded in the background. This update is not atomic, which
means that if you subscribe to notifications using
Subscribe |