asQuery

abstract fun <T : RealmObject> asQuery(type: KClass<T>): RealmQuery<T>

Converts the Subscription.queryDescription back to a RealmQuery that can be executed against the local Realm.

Parameters

type

a reference to the Kotlin model class that represents objectType.

Throws

if type does not match the type of objects this query can return.