A class representing an API key for a User. It can be used to represent the user when logging in
instead of their regular credentials. These keys are created or fetched through User.apiKeys.
A class exposing functionality for users to manage API keys from the client. It is always scoped
to a particular User and can only be accessed via User.apiKeys
ClientResetHandler is triggered if the device and server cannot agree
on a common shared history for the realm file
or when it is impossible for the device to upload or receive any changes.
This can happen if the server is rolled back or restored from backup.
DisconnectedSyncConfiguration is used to open Realm instances that are synchronized
with MongoDB Atlas, without establishing a connection to Atlas App Services. This allows
for the synchronized realm to be opened in multiple processes concurrently, as long as
only one of them uses a FlexibleSyncConfiguration to sync changes.
A Migration object is passed to you when you migrate your database from one version
to another. It contains the properties for the Realm before and after the migration.
After the migration is complete, newRealm will become the authoritative version of
the file.
Instances of this class are live collections and will update as new elements are either
added to or deleted from the Realm that match the underlying query.
A client reset strategy that attempts to automatically recover any unsynchronized changes.
If that fails, this handler fallsback to the discard unsynced changes strategy.
An object encapsulating a synchronization session. Sessions represent the
communication between the client (and a local Realm file on disk), and the
server. Sessions are always created by the SDK and vended out through various
APIs. The lifespans of sessions associated with Realms are managed automatically.
A class representing a single query subscription. The server will continuously
evaluate the query that the app subscribed to and will send data
that matches it as well as remove data that no longer does.
This class represents a user in an Atlas App Services application.
A user can log in to the server and, if access is granted, it is possible to synchronize the local Realm to MongoDB Atlas.
Moreover, synchronization is halted when the user is logged out. It is possible to persist a user. By retrieving a user, there is no need to log in again.
Persisting a user between sessions, the user's credentials are stored
locally on the device, and should be treated as sensitive data.
Describes the changes to a User instance - for example when the access token is updated or the user state changes.
Right now, this only conveys information that the user has changed, but in the future it will be enhanced by adding
details about the exact properties that have been updated.
Represents a RFC 4122 UUID. More generally, any 128-bit byte sequence can be
represented by this class, but the semantics for the fields described in the
may not apply for other variants.
An enum containing all authentication providers. These have to be enabled manually for the application before they can be used.
Authentication Providers Docs
The signature of a callback that will be executed while the Realm is opened asynchronously with Realm.open.
This is the registered onProgressCallback when calling Realm.open that receives progress notifications while the download is in progress.
Thrown when an error occurs during synchronization
This error or its subclasses will be returned to users through FlexibleSyncConfiguration.syncErrorHandler
and the exact reason must be found in the message.