Companion

object Companion

Properties

Link copied to clipboard

The default implementation for determining if a file should be compacted or not. This implementation will only trigger if the file is above 50 MB and 50% or more of the space can be reclaimed.

Link copied to clipboard

Default name for realm files unless overridden by Configuration.SharedBuilder.name.

Link copied to clipboard

Default tag used by log entries

Link copied to clipboard

The required length for encryption keys used to encrypt Realm data.

Functions

Link copied to clipboard
fun compactRealm(configuration: Configuration): Boolean

Compacts the Realm file defined by the given configuration. Compaction can only succeed if all references to the Realm file has been closed.

Link copied to clipboard
fun deleteRealm(configuration: Configuration)

Deletes the realm file along with other related temporary files specified by the given RealmConfiguration from the filesystem. The temporary file with ".lock" extension won't be deleted.

Link copied to clipboard
fun open(configuration: Configuration): Realm

Open a realm instance.