query

abstract fun query(query: String = TRUE_PREDICATE, vararg args: Any?): RealmQuery<T>

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

See these docs for a description of the equivalent realm-java API and these docs for a more detailed description of the actual Realm Query Language.

Ex.: 'color = "tan" AND name BEGINSWITH "B" SORT(name DESC) LIMIT(5)

Return

new result according to the query and query arguments.

Parameters

query

The query string to use for filtering and sort. If the empty string is used, the original query used to create this RealmResults is returned.

args

The query parameters.

Throws

on invalid queries.