Text Search State
data class TextSearchState(val emptyQuery: String = "", val results: List<TextSearchResult> = emptyList(), val resultsQuery: String? = null, val status: SearchStatus = SearchStatus.IDLE, val selectedResultIndex: Int = 0, val query: String = "") : SearchState<TextSearchResult, String>
State for searching text in a document.
Constructors
Link copied to clipboard
constructor(emptyQuery: String = "", results: List<TextSearchResult> = emptyList(), resultsQuery: String? = null, status: SearchStatus = SearchStatus.IDLE, selectedResultIndex: Int = 0, query: String = "")
Properties
Link copied to clipboard
Initial query value and also the value to which the query is reset when the search is terminated
Link copied to clipboard
Contains the search results
Link copied to clipboard
The query associated with the current results
Link copied to clipboard
Index of currently selected result
Link copied to clipboard
The current search status of the search