objects
abstract fun <T : RealmObject> objects(clazz: KClass<T>): RealmResults<T>
Content copied to clipboard
Returns the results of querying for all objects of a specific type.
For a Realm instance this reflects the state of the realm at the invocation time, thus the results will not change on updates to the Realm. For a MutableRealm the result is live and will in fact reflect updates to the MutableRealm.
Return
The result of the query.
Parameters
clazz
The class of the objects to query for.