SharedBuilder
Base class for configuration builders that holds properties available to both RealmConfiguration and SyncConfiguration.
Parameters
the type of Configuration the builder should generate.
the type of builder, needed to distinguish between local and sync variants.
Inheritors
Functions
Sets a callback for controlling whether the realm should be compacted when opened.
Sets the 64 byte key used to encrypt and decrypt the Realm file. If no key is provided the Realm file will be unencrypted.
Writes initial data to the Realm file. This callback will be executed only once, when the database file is created. This also include cases where RealmConfiguration.Builder.deleteRealmIfMigrationNeeded was set causing the file to be deleted.
Initializes a realm file with a bundled asset realm file.
Sets the maximum number of live versions in the Realm file before an IllegalStateException is thrown when attempting to write more data.
Sets the schema version of the Realm. This must be equal to or higher than the schema version of the existing Realm file, if any. If the schema version is higher than the already existing Realm, a migration is needed.