Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
data class TextSearchResult(val pageIndex: Int, val range: ERROR CLASS: Symbol not found for Range, val rangeInPreview: ERROR CLASS: Symbol not found for Range, val previewText: String = "") : SearchResult
This is a wip implementation for the text search result object. Eventually we should migrate all the features from com.pspdfkit.document.search.SearchResult. Currently we're lacking annotations, more sophisticated text snippet handling and probably a few more things.
Link copied to clipboard
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.
Functions
Link copied to clipboard
fun TextHighlightOverlay(pageIndex: Int, textSearch: Feature<TextSearchState, TextSearchActions>, textProvider: DocumentTextProvider, pageToView: Matrix, searchConfiguration: TextSearchConfiguration?)
An overlay composable (placed on top of a PDF page) that highlights text search results.