Package-level declarations
Types
Link copied to clipboard
Generic interface for handling searching the document with a query.
Link copied to clipboard
Generic interface for searching the document with a query.
Link copied to clipboard
Base class for search results.
Link copied to clipboard
Controller for a result navigation UI that allows to navigate between search results.
Link copied to clipboard
Generic search state interface that can be used to search and manage the results
Link copied to clipboard
Current status of the search
Functions
Link copied to clipboard
fun <Q, S : SearchState<*, Q>> rememberQueryAndSearchOnChange(actions: SearchActions<*, Q, S>, initialQuery: Q, debounceTime: Long = 300, resultCollectionContext: CoroutineContext = Dispatchers.Main): MutableState<Q>
Utility composable function to remember a search query, observe changes to it and start the search after a debounce time. While the actual search is always executed on the Dispatchers.Default context, the results are collected on resultCollectionContext, which defaults to Dispatchers.Main.