query

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

Returns a query for dynamic realm objects of the specified class.

Return

a RealmQuery, which can be used to query for specific objects of provided type.

Parameters

className

the name of the class of which to query for.

query

the Realm Query Language predicate use when querying.

args

realm values for the predicate.

See also

Throws

if the class with className doesn't exist in the realm.