Document Listener
class DocumentListener(val onDocumentLoaded: (PdfDocument) -> Unit? = null, val onDocumentLoadFailed: (Throwable) -> Unit? = null, val onDocumentSave: (PdfDocument, DocumentSaveOptions) -> Boolean? = null, val onDocumentSaved: (PdfDocument) -> Unit? = null, val onDocumentSaveFailed: (PdfDocument, Throwable) -> Unit? = null, val onDocumentSaveCancelled: (PdfDocument?) -> Unit? = null, val onPageClick: (PdfDocument, Int, MotionEvent?, PointF?, Annotation?) -> Boolean? = null, val onDocumentClick: () -> Boolean? = null, val onPageChanged: (PdfDocument, Int) -> Unit? = null, val onDocumentZoomed: (PdfDocument, Int, Float) -> Unit? = null, val onPageUpdated: (PdfDocument, Int) -> Unit? = null)
Wrapper for holding all DocumentListener callbacks
Constructors
Link copied to clipboard
constructor(onDocumentLoaded: (PdfDocument) -> Unit? = null, onDocumentLoadFailed: (Throwable) -> Unit? = null, onDocumentSave: (PdfDocument, DocumentSaveOptions) -> Boolean? = null, onDocumentSaved: (PdfDocument) -> Unit? = null, onDocumentSaveFailed: (PdfDocument, Throwable) -> Unit? = null, onDocumentSaveCancelled: (PdfDocument?) -> Unit? = null, onPageClick: (PdfDocument, Int, MotionEvent?, PointF?, Annotation?) -> Boolean? = null, onDocumentClick: () -> Boolean? = null, onPageChanged: (PdfDocument, Int) -> Unit? = null, onDocumentZoomed: (PdfDocument, Int, Float) -> Unit? = null, onPageUpdated: (PdfDocument, Int) -> Unit? = null)