BaseRealm

interface BaseRealm : Versioned

Base class for all Realm instances (Realm and MutableRealm).

Functions

getNumberOfActiveVersions
Link copied to clipboard
abstract fun getNumberOfActiveVersions(): Long

Returns the current number of active versions in the Realm file. A large number of active versions can have a negative impact on the Realm file size on disk.

isClosed
Link copied to clipboard
abstract fun isClosed(): Boolean

Check if this Realm has been closed or not. If the Realm has been closed, most methods will throw IllegalStateException if called.

schema
Link copied to clipboard
abstract fun schema(): RealmSchema

Returns an immutable schema of the realm.

schemaVersion
Link copied to clipboard
abstract fun schemaVersion(): Long

Returns the schema version of the realm.

version
Link copied to clipboard
abstract fun version(): VersionId

Returns the Realm version of this object. This version number is tied to the transaction the object was read from.

Properties

configuration
Link copied to clipboard
abstract val configuration: Configuration

Configuration used to configure this Realm instance.

Inheritors

TypedRealm
Link copied to clipboard
DynamicRealm
Link copied to clipboard