- "active": The session is connected to the Realm Object Server and is actively transferring data.
- "inactive": The session is not currently communicating with the Realm Object Server.
- "invalid": A non-recoverable error has occurred, and this session is semantically invalid. A new session should be created.
Gets the Sync-part of the configuration that the corresponding Realm was constructed with.
Gets the current state of the session. Can be either:
Gets the URL of the Realm Object Server that this session is connected to.
Gets the User that this session was created with.
The progress direction to register for. Can be either:
download- report download progress
upload- report upload progress
The progress notification mode to use for the registration. Can be either:
reportIndefinitely- the registration will stay active until the callback is unregistered
forCurrentlyOutstandingWork- the registration will be active until only the currently transferable bytes are synced
called with the following arguments:
transferred- the current number of bytes already transferred
transferable- the total number of transferable bytes (the number of bytes already transferred plus the number of bytes pending transfer)
a previously registered progress callback
Register a progress notification callback on a session object
Unregister a progress notification callback that was previously registered with addProgressNotification. Calling the function multiple times with the same callback is ignored.