RealmScalarNullableQuery

interface RealmScalarNullableQuery<T> : Flowable<T>

Queries that return scalar, nullable values. This type of query is used to more accurately represent the results provided by some query operations, e.g. RealmQuery.min or RealmQuery.max.

Functions

asFlow
Link copied to clipboard
abstract override fun asFlow(): Flow<T?>
Calculates the value that fulfills the query conditions and returns it asynchronously as a Flow.
find
Link copied to clipboard
abstract fun find(): T?
Returns the value of a scalar query as a T in a blocking fashion.

Extensions

find
Link copied to clipboard
fun <T, R> RealmScalarNullableQuery<T>.find(block: (T?) -> R): R
Similar to RealmScalarNullableQuery.find but it receives a block in which the scalar result from the query is provided.