com.pspdfkit.ui.PSPDFKitViews.PSPDFView |
![]() |
Shared interface of all auxiliary views (search view, thumbnail bar, grid, etc.) that are
hosted inside the PdfActivity
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addOnVisibilityChangedListener(OnVisibilityChangedListener listener)
Register a
listener that would like to receive visibility change events. | ||||||||||
abstract void |
clearDocument()
Called by the activity when the view should unbind the previously set document.
| ||||||||||
abstract PSPDFKitViews.Type |
getPSPDFViewType()
Returns the current type of this view.
| ||||||||||
abstract void |
hide()
Called by the activity when the view should hide itself.
| ||||||||||
abstract boolean |
isDisplayed()
Called when the activity needs to know the visibility of this view.
| ||||||||||
abstract void |
removeOnVisibilityChangedListener(OnVisibilityChangedListener listener)
Unregister a previously registered
listener that no longer wants to receive
visibility change events. | ||||||||||
abstract void |
setDocument(PdfDocument document, PdfConfiguration configuration)
Called when the
document has been loaded and is going to be displayed. | ||||||||||
abstract void |
show()
Called by the activity when the view should make itself visible.
|
Register a listener
that would like to receive visibility change events. Whenever
the visibility of a managed PSPDFKitViews.PSPDFView
changes, all registered listeners will be
notified.
listener | Listener to be added. |
---|
Called by the activity when the view should unbind the previously set document. This may be called in low-memory situations or prior to re-binding another document.
Returns the current type of this view.
PSPDFKitViews.Type
.
Called by the activity when the view should hide itself.
Called when the activity needs to know the visibility of this view. Returns true
if this view is visible, otherwise returns false
.
Unregister a previously registered listener
that no longer wants to receive
visibility change events.
listener | Listener to be removed. |
---|
Called when the document
has been loaded and is going to be displayed. This has
to be called on the main thread.
document | Loaded PdfDocument . |
---|---|
configuration | Containing document and presentation settings. |
Called by the activity when the view should make itself visible.