Factory
fun Factory(realmQueryBuilder: RealmQueryBuilder<T>, transform: RealmModelTransform<T, R>)
Content copied to clipboard
Parameters
realmQueryBuilder
The builder function that will be used to construct RealmQuery instance. Will be called on loading thread.
transform
The transformation function that will be used to map live managed RealmModel instances to type R
. The R
should be unmanaged RealmModel objects or custom types. If managed instances are returned, then thread safety is not guaranteed.