Sync

interface Sync

A Device Sync manager responsible for controlling all sync sessions across all realms associated with a given App instance. For session functionality associated with a single realm, see syncSession.

See also

Functions

reconnect
Link copied to clipboard
abstract fun reconnect()

Realm will automatically detect when a device gets connectivity after being offline and resume syncing. However, as some of these checks are performed using incremental backoff, this will in some cases not happen immediately.

waitForSessionsToTerminate
Link copied to clipboard
abstract fun waitForSessionsToTerminate()

Calling this method will block until all sync sessions for a given App has terminated.

Properties

hasSyncSessions
Link copied to clipboard
abstract val hasSyncSessions: Boolean

Returns whether or not any sync sessions are still active.