SyncConfiguration
A SyncConfiguration is used to setup a Realm Database that can be synchronized between devices using MongoDB Realm.
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.Builder(user, "partition-value", setOf(YourRealmObject::class)).build()
val realm = Realm.open(config)
Types
Builder
Link copied to clipboard
class Builder : RealmConfiguration.SharedBuilder<SyncConfiguration, SyncConfiguration.Builder>
Content copied to clipboard
Used to create a SyncConfiguration. For common use cases, a SyncConfiguration can be created using the RealmConfiguration.with function.
Properties
deleteRealmIfMigrationNeeded
Link copied to clipboard
encryptionKey
Link copied to clipboard
errorHandler
Link copied to clipboard
log
Link copied to clipboard
maxNumberOfActiveVersions
Link copied to clipboard
partitionValue
Link copied to clipboard
schema
Link copied to clipboard
schemaVersion
Link copied to clipboard