TextSearchContext

An interface representing the context for searching text within a PDF document.

Inheritors

Properties

Link copied to clipboard
abstract val countResult: Int

The number of search results found.

Link copied to clipboard
abstract val hasNext: Boolean

Returns whether there are more results to be found in the current search direction.

Link copied to clipboard
abstract val hasPrev: Boolean

Returns whether there are previous results in the current search direction.

Link copied to clipboard
abstract val isMatchCase: Boolean

Whether to match the case of the query.

Link copied to clipboard

Whether to match only whole words.

Link copied to clipboard
abstract val pageIndex: Int

The index of the page to search.

Link copied to clipboard
abstract val query: String?

The search query string.

Link copied to clipboard
abstract val searchNext: RectF?

The bounding rectangle of the next search result.

Link copied to clipboard
abstract val searchPrev: RectF?

The bounding rectangle of the previous search result.

Functions

Link copied to clipboard
abstract fun prepareSearch()

Prepares the search by initializing the search engine and setting initial search flags.

Link copied to clipboard
abstract fun startSearch()

Starts a new search for the query within the specified page.

Link copied to clipboard
abstract fun stopSearch()

Stops the current search.