DynamicRealm

interface DynamicRealm : BaseRealm

A dynamic realm gives access to the data of the realm through a generic string based API instead of the conventional Realm API that uses the schema classes supplied in the configuration.

NOTE: All objects obtained from a DynamicRealm are only valid in the scope of the dynamic realm. Thus they cannot be passed outside of an RealmMigration that gives access to a specific DynamicRealm instance, etc.

Functions

getNumberOfActiveVersions
Link copied to clipboard
abstract fun getNumberOfActiveVersions(): Long
Returns the current number of active versions in the Realm file.
isClosed
Link copied to clipboard
abstract fun isClosed(): Boolean
Check if this Realm has been closed or not.
query
Link copied to clipboard
abstract fun query(className: String, query: String = "TRUEPREDICATE", vararg args: Any?): RealmQuery<out DynamicRealmObject>
Returns a query for dynamic realm objects of the specified class.
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.

Properties

configuration
Link copied to clipboard
abstract val configuration: Configuration
Configuration used to configure this Realm instance.

Inheritors

DynamicMutableRealm
Link copied to clipboard