Builder

Used to create a SyncConfiguration. For common use cases, a SyncConfiguration can be created using the RealmConfiguration.with function.

Constructors

Builder
Link copied to clipboard
fun Builder(user: User, partitionValue: Int, schema: Set<KClass<out RealmObject>>)
Builder
Link copied to clipboard
fun Builder(user: User, partitionValue: Long, schema: Set<KClass<out RealmObject>>)
Builder
Link copied to clipboard
fun Builder(user: User, partitionValue: String, schema: Set<KClass<out RealmObject>>)

Functions

build
Link copied to clipboard
open override fun build(): SyncConfiguration
compactOnLaunch
Link copied to clipboard
fun compactOnLaunch(callback: CompactOnLaunchCallback): SyncConfiguration.Builder
directory
Link copied to clipboard
fun directory(directoryPath: String?): SyncConfiguration.Builder
encryptionKey
Link copied to clipboard
fun encryptionKey(encryptionKey: ByteArray): SyncConfiguration.Builder
errorHandler
Link copied to clipboard
fun errorHandler(errorHandler: SyncSession.ErrorHandler): SyncConfiguration.Builder
Sets the error handler used by Synced Realms when reporting errors with their session.
log
Link copied to clipboard
open override fun log(level: LogLevel, customLoggers: List<RealmLogger>): SyncConfiguration.Builder
maxNumberOfActiveVersions
Link copied to clipboard
fun maxNumberOfActiveVersions(maxVersions: Long): SyncConfiguration.Builder
name
Link copied to clipboard
fun name(name: String): SyncConfiguration.Builder
schemaVersion
Link copied to clipboard
fun schemaVersion(schemaVersion: Long): SyncConfiguration.Builder