find
fun <T : BaseRealmObject, R> RealmQuery<T>.find(block: (RealmResults<T>) -> R): R
Content copied to clipboard
Similar to RealmQuery.find but it receives a block in which the RealmResults from the query are provided.
Return
whatever block returns
Parameters
T
the type of the query
R
the type returned by block
Similar to RealmScalarNullableQuery.find but it receives a block in which the scalar result from the query is provided.
Return
whatever block returns
Parameters
T
the type of the query
R
the type returned by block
Similar to RealmScalarQuery.find but it receives a block in which the scalar result from the query is provided.
Return
whatever block returns
Parameters
T
the type of the query
R
the type returned by block
fun <T : BaseRealmObject, R> RealmSingleQuery<T>.find(block: (T?) -> R): R
Content copied to clipboard
Similar to RealmSingleQuery.find but it receives a block in which the RealmObject or EmbeddedRealmObject from the query is provided.
Return
whatever block returns
Parameters
T
the type of the query
R
the type returned by block