java.lang.Object | |
↳ | com.pspdfkit.ui.search.SimpleSearchResultListener |
Empty implementation of the PdfSearchView.Listener
interface.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SimpleSearchResultListener() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
onMoreSearchResults(List<SearchResult> results)
Called every time the
PdfSearchView has a new chunk of SearchResult
instances. | ||||||||||
void |
onSearchCleared()
Called by the
PdfSearchView when the current search results have been cleared. | ||||||||||
void |
onSearchCompleted()
Called by the
PdfSearchView as soon as it has finished the search. | ||||||||||
void |
onSearchError(Throwable error)
Called by the
PdfSearchView if search could not be completed because of an error . | ||||||||||
void |
onSearchResultSelected(SearchResult result)
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. | ||||||||||
void |
onSearchStarted(String searchTerm)
Called by the
PdfSearchView once it has started searching the document. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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.
results | The next chunk of search results. |
---|
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.
Called by the PdfSearchView
if search could not be completed because of an error
.
error | Throwable describing the error.
|
---|
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.
result | The touched SearchResult , or null if the previous search
result selection was cleared.
|
---|
Called by the PdfSearchView
once it has started searching the document.
searchTerm | The term which is searched. |
---|