RealmResults

interface RealmResults<T : RealmObject> : List<T> , Queryable<T> , Versioned

A Realm Result holds the results of querying the Realm.

See also

Functions

contains
Link copied to clipboard
abstract operator override fun contains(element: T): Boolean
containsAll
Link copied to clipboard
abstract override fun containsAll(elements: Collection<T>): Boolean
delete
Link copied to clipboard
abstract fun delete()

Delete all objects from this result from the realm.

get
Link copied to clipboard
abstract operator fun get(index: Int): T
indexOf
Link copied to clipboard
abstract fun indexOf(element: T): Int
isEmpty
Link copied to clipboard
abstract override fun isEmpty(): Boolean
iterator
Link copied to clipboard
abstract operator override fun iterator(): Iterator<T>
lastIndexOf
Link copied to clipboard
abstract fun lastIndexOf(element: T): Int
listIterator
Link copied to clipboard
abstract fun listIterator(): ListIterator<T>
abstract fun listIterator(index: Int): ListIterator<T>
observe
Link copied to clipboard
abstract fun observe(): Flow<RealmResults<T>>

Observe changes to the RealmResult. If there is any change to objects represented by the query backing the RealmResult, the flow will emit the updated RealmResult. The flow will continue running indefinitely until canceled.

query
Link copied to clipboard
abstract override fun query(query: String, vararg args: Any?): RealmResults<T>

Perform a query on the objects of this result using the Realm Query Language.

subList
Link copied to clipboard
abstract fun subList(fromIndex: Int, toIndex: Int): List<T>
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

size
Link copied to clipboard
abstract override val size: Int