Companion

object Companion

Functions

compactRealm
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.

deleteRealm
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.

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

Open a realm instance.

Properties

DEFAULT_COMPACT_ON_LAUNCH_CALLBACK
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.

DEFAULT_FILE_NAME
Link copied to clipboard
const val DEFAULT_FILE_NAME: String

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

DEFAULT_LOG_TAG
Link copied to clipboard
const val DEFAULT_LOG_TAG: String

Default tag used by log entries

ENCRYPTION_KEY_LENGTH
Link copied to clipboard
const val ENCRYPTION_KEY_LENGTH: Int

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