SharedBuilder
abstract class SharedBuilder<T, S : RealmConfiguration.SharedBuilder<T, S>>(schema: Set<KClass<out RealmObject>>)
Content copied to clipboard
This class contains shared properties across the two types of configuration builders. Abstracting this allows for minimal rewiring by the compiler plugin since build is available to both builders.
The property functions in this builder return the type of the builder itself, represented by S. This is due to library-base
not having visibility over library-sync
and therefore all function return types have to be typecast as S.
Parameters
T
the type of RealmConfiguration the builder should generate
S
the type of builder, needed to distinguish between local and sync variants.
Constructors
SharedBuilder
Link copied to clipboard
the type of RealmConfiguration the builder should generate
Functions
deleteRealmIfMigrationNeeded
Link copied to clipboard
encryptionKey
Link copied to clipboard
maxNumberOfActiveVersions
Link 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.
schema
Link copied to clipboard
schemaVersion
Link copied to clipboard
Properties
schema
Link copied to clipboard
Inheritors
RealmConfiguration
Link copied to clipboard