com.pspdfkit.listeners.PdfActivityListener |
Known Indirect Subclasses
|
Class Overview
This listener allows PdfActivity
to receive document events.
Summary
[Expand]
Inherited Methods |
From interface
com.pspdfkit.listeners.DocumentListener
abstract
boolean
|
onDocumentClick()
Called when the user taps / clicks on the document, not the page itself but on the side (if
visible).
|
abstract
void
|
onDocumentLoadFailed(Throwable exception)
Called if document loading has failed.
|
abstract
void
|
onDocumentLoaded(PdfDocument document)
Called when document is successfully loaded and the document view has been laid out.
|
abstract
boolean
|
onDocumentSave(PdfDocument document, DocumentSaveOptions saveOptions)
Called before document will be saved.
|
abstract
void
|
onDocumentSaveCancelled(PdfDocument document)
Called if document saving has been cancelled.
|
abstract
void
|
onDocumentSaveFailed(PdfDocument document, Throwable exception)
Called if document saving has failed.
|
abstract
void
|
onDocumentSaved(PdfDocument document)
Called after the document has been saved.
|
abstract
void
|
onDocumentZoomed(PdfDocument document, int pageIndex, float scaleFactor)
Called when a user zooms a document.
|
abstract
void
|
onPageChanged(PdfDocument document, int pageIndex)
Called when user scrolled to a new page.
|
abstract
boolean
|
onPageClick(PdfDocument document, int pageIndex, MotionEvent event, PointF pagePosition, Annotation clickedAnnotation)
Called when user taps / clicks on the page.
|
abstract
void
|
onPageUpdated(PdfDocument document, int pageIndex)
Called when content of page with pageIndex has changed (for example due to annotation or form
field being updated).
|
|
Public Methods
Called when activity title must be set - before and after document was loaded.
Parameters
configuration |
Passed activity configuration instance. |
document |
Loaded document. If document hasn't been loaded yet, this parameter will be
null .
|
public
abstract
void
onUserInterfaceVisibilityChanged
(boolean visible)
Called when user interface visibility have changed.
Parameters
visible |
true when UI interface is visible, false when it is hidden.
|