com.pspdfkit.ui.search.PdfSearchView |
![]() |
Interface shared by the PdfSearchViewInline
and the PdfSearchViewModular
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | PdfSearchView.Listener | Listener for observing the search view. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
clearSearch()
Clears the search input field as well as any previously collected search results.
| ||||||||||
abstract boolean |
isShown()
Returns the value returned when calling
isShown() on the search view. | ||||||||||
abstract void |
setInputFieldText(String text, boolean startSearch)
Inserts text in search input field and optionally starts search.
| ||||||||||
abstract void |
setSearchConfiguration(SearchConfiguration searchConfiguration)
Sets the search configuration to this search view.
| ||||||||||
abstract void |
setSearchViewListener(PdfSearchView.Listener searchViewListener)
Sets a listener to be notified of search events on this view.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Clears the search input field as well as any previously collected search results. This will
also cancel any currently running search operation. Implementations of PdfSearchView
need to call onSearchCleared()
on the current listener.
Returns the value returned when callingisShown()
on the search view.
true
if search view is shown, false
otherwise.
Inserts text in search input field and optionally starts search.
text | Search text. |
---|---|
startSearch | Hides keyboard and starts search if true
|
Sets the search configuration to this search view.
searchConfiguration | Search configuration to be set for this PdfSearchView .
|
---|
Sets a listener to be notified of search events on this view. May be null
to remove
any previously set listener.
searchViewListener | A PdfSearchView.Listener which should be notified of search events, or
null to remove a previously registered listener.
|
---|