isEmpty

fun <P : IviPagingSource<E>, E : Any> Flow<P>.isEmpty(): Flow<Boolean>

Transforms this IviPagingSource to a Boolean indicating whether the IviPagingSource does not contain any element.


fun <P : IviPagingSource<E>, E : Any> LiveData<P>.isEmpty(timeout: Duration = Duration.ZERO): LiveData<Boolean>

Transforms this IviPagingSource to a Boolean indicating whether the IviPagingSource does not contain any element. If the returned LiveData becomes inactive while values are still being emitted, the underlying coroutine will be cancelled after the timeout, unless the LiveData becomes active again before that timeout. By default, timeout is Duration.ZERO, which means that once the returned LiveData becomes inactive it is not usable anymore.