TextSearchConfiguration

data class TextSearchConfiguration(val isSearchUiVisible: Boolean = false, val searchType: ERROR CLASS: Symbol not found for SearchType = SearchType.INLINE, val searchResultHighlight: @Composable (rect: Rect, isSelected: Boolean) -> Unit = { rect, isSelected -> DefaultSearchResultHighlight(rect, isSelected) })

Configuration for text search functionality in the document viewer.

Constructors

Link copied to clipboard
constructor(isSearchUiVisible: Boolean = false, searchType: ERROR CLASS: Symbol not found for SearchType = SearchType.INLINE, searchResultHighlight: @Composable (rect: Rect, isSelected: Boolean) -> Unit = { rect, isSelected -> DefaultSearchResultHighlight(rect, isSelected) })

Properties

Link copied to clipboard

Whether the search UI is currently visible.

Link copied to clipboard
val searchResultHighlight: @Composable (rect: Rect, isSelected: Boolean) -> Unit

A composable function to render search result highlights. Receives the rectangle bounds of the result and whether it's currently selected.

Link copied to clipboard
val searchType: ERROR CLASS: Symbol not found for SearchType

The type of search interface to display (inline or modal).