TextSearchState

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
open override val emptyQuery: String

Initial query value and also the value to which the query is reset when the search is terminated

Link copied to clipboard
open override val query: String

The current search query

Link copied to clipboard
open override val results: List<TextSearchResult>

Contains the search results

Link copied to clipboard
open override val resultsQuery: String?

The query associated with the current results

Link copied to clipboard
open override val selectedResultIndex: Int

Index of currently selected result

Link copied to clipboard
open override val status: SearchStatus

The current search status of the search