Listener

interface Listener

Listener for observing the search view.

Inheritors

Functions

Link copied to clipboard
abstract fun onMoreSearchResults(@NonNull results: List<SearchResult>)
Called every time the PdfSearchView has a new chunk of SearchResult instances.
Link copied to clipboard
abstract fun onSearchCleared()
Called by the PdfSearchView when the current search results have been cleared.
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(@NonNull error: Throwable)
Called by the PdfSearchView if search could not be completed because of an error.
Link copied to clipboard
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(@NonNull searchTerm: String)
Called by the PdfSearchView once it has started searching the document.