SearchIterator

Iterates through search results.

Properties

Link copied to clipboard
open val resultCount: Int?

Number of matches for this search, if known.

Functions

Link copied to clipboard
open override fun close()

Closes any resources allocated for the search query, such as a cursor. To be called when the user dismisses the search.

Link copied to clipboard
open suspend fun forEach(action: (LocatorCollection) -> Unit): SearchTry<Unit>

Performs the given operation on each result page of this SearchIterator.

Link copied to clipboard
abstract suspend fun next(): SearchTry<LocatorCollection?>

Retrieves the next page of results.