RealmResults

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

A Realm Result holds the results of querying the Realm.

See also

Realm.objects
MutableRealm.objects

Functions

asFlow
Link copied to clipboard
abstract override fun asFlow(): Flow<RealmResults<T>>
Observe changes to the RealmResult.
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>
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.

Properties

size
Link copied to clipboard
abstract override val size: Int