Builder
class Builder(schema: Set<KClass<out BaseRealmObject>>) : Configuration.SharedBuilder<RealmConfiguration, RealmConfiguration.Builder>
Content copied to clipboard
Used to create a RealmConfiguration. For common use cases, a RealmConfiguration can be created using the RealmConfiguration.create function.
Constructors
Builder
Link copied to clipboard
Functions
build
Link copied to clipboard
compactOnLaunch
Link copied to clipboard
fun compactOnLaunch(callback: CompactOnLaunchCallback = Realm.DEFAULT_COMPACT_ON_LAUNCH_CALLBACK): RealmConfiguration.Builder
Content copied to clipboard
deleteRealmIfMigrationNeeded
Link copied to clipboard
directory
Link copied to clipboard
encryptionKey
Link copied to clipboard
initialData
Link copied to clipboard
fun initialData(callback: InitialDataCallback): RealmConfiguration.Builder
Content copied to clipboard
log
Link copied to clipboard
open fun log(level: LogLevel = LogLevel.WARN, customLoggers: List<RealmLogger> = emptyList()): RealmConfiguration.Builder
Content copied to clipboard
maxNumberOfActiveVersions
Link copied to clipboard
fun maxNumberOfActiveVersions(maxVersions: Long = 8): RealmConfiguration.Builder
Content copied to clipboard
Sets the maximum number of live versions in the Realm file before an IllegalStateException is thrown when attempting to write more data.
migration
Link copied to clipboard
name
Link copied to clipboard
schemaVersion
Link copied to clipboard