TypedRealm

interface TypedRealm : BaseRealm

A typed realm that can be queried for objects of a specific type.

Functions

copyFromRealm
Link copied to clipboard
abstract fun <T : TypedRealmObject> copyFromRealm(obj: T, depth: UInt = UInt.MAX_VALUE): T
Makes an unmanaged in-memory copy of an already persisted io.realm.kotlin.types.RealmObject.
abstract fun <T : TypedRealmObject> copyFromRealm(collection: Iterable<T>, depth: UInt = UInt.MAX_VALUE): List<T>
Makes an unmanaged in-memory copy of a collection of already persisted io.realm.kotlin.types.RealmObjects.
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 <T : BaseRealmObject> query(clazz: KClass<T>, query: String = TRUE_PREDICATE, vararg args: Any?): RealmQuery<T>
Returns a RealmQuery matching the predicate represented by query.
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

MutableRealm
Link copied to clipboard
Realm
Link copied to clipboard

Extensions

query
Link copied to clipboard
inline fun <T : BaseRealmObject> TypedRealm.query(query: String = TRUE_PREDICATE, vararg args: Any?): RealmQuery<T>
Returns a RealmQuery matching the predicate represented by query.