Package io.realm.kotlin.ext

Functions

asFlow
Link copied to clipboard
fun <T : BaseRealmObject> T.asFlow(): Flow<ObjectChange<T>>
Observe changes to a Realm object.
isFrozen
Link copied to clipboard
fun BaseRealmObject.isFrozen(): Boolean
Returns whether the object is frozen or not.
isManaged
Link copied to clipboard
fun BaseRealmObject.isManaged(): Boolean
Returns whether or not this object is managed by Realm.
isValid
Link copied to clipboard
fun BaseRealmObject.isValid(): Boolean
Returns true if this object is still valid to use, i.e.
query
Link copied to clipboard
inline fun <T : BaseRealmObject> MutableRealm.query(query: String = "TRUEPREDICATE", vararg args: Any?): RealmQuery<T>
Returns a RealmQuery matching the predicate represented by query.
inline fun <T : BaseRealmObject> Realm.query(query: String = "TRUEPREDICATE", vararg args: Any?): RealmQuery<T>
Returns a RealmQuery matching the predicate represented by query.
inline fun <T : BaseRealmObject> TypedRealm.query(query: String = "TRUEPREDICATE", vararg args: Any?): RealmQuery<T>
Returns a RealmQuery matching the predicate represented by query.
realmListOf
Link copied to clipboard
fun <T> realmListOf(vararg elements: T): RealmList<T>
Instantiates an unmanagedRealmList.
toRealmList
Link copied to clipboard
fun <T> Iterable<T>.toRealmList(): RealmList<T>
Instantiates an unmanagedRealmList containing all the elements of this iterable.
version
Link copied to clipboard
fun BaseRealmObject.version(): VersionId
Returns the Realm version of this object.