Listener

interface Listener

Listener for observing the search view.

Inheritors

Functions

Link copied to clipboard
abstract fun onMoreSearchResults(results: List<SearchResult>)

Called every time the PdfSearchView has a new chunk of SearchResult instances. The listener implementation must be abel to handle multiple subsequent calls, since the search view may call this method multiple times during a search.

Link copied to clipboard
abstract fun onSearchCleared()

Called by the PdfSearchView when the current search results have been cleared. This may be called if the user clears and hides the search view.

Link copied to clipboard
abstract fun onSearchCompleted()

Called by the PdfSearchView as soon as it has finished the search.

Link copied to clipboard
abstract fun onSearchError(error: Throwable)

Called by the PdfSearchView if search could not be completed because of an error.

Link copied to clipboard
abstract fun onSearchResultSelected(result: SearchResult?)

Called by the PdfSearchView if the user touched a SearchResult, providing the actual result as an argument, or null if the previous search result selection was cleared.

Link copied to clipboard
abstract fun onSearchStarted(searchTerm: String)

Called by the PdfSearchView once it has started searching the document.