Sync Configuration
A SyncConfiguration is used to setup a Realm Database that can be synchronized between devices using Atlas Device Sync.
A valid User is required to create a SyncConfiguration. See Credentials and App.login for more information on how to get a user object.
A minimal SyncConfiguration can be found below.
val app = App.create(appId)
val user = app.login(Credentials.anonymous())
val config = SyncConfiguration.create(user, "partition-value", setOf(YourRealmObject::class))
val realm = Realm.open(config)Content copied to clipboard
Types
Builder
Link copied to clipboard
Used to create a SyncConfiguration. For common use cases, a SyncConfiguration can be created using the SyncConfiguration.create function.
Properties
errorHandler
Link copied to clipboard
initialRemoteData
Link copied to clipboard
initialSubscriptions
Link copied to clipboard
syncClientResetStrategy
Link copied to clipboard