Class DocumentListener
-
- All Implemented Interfaces:
@Immutable() public final class DocumentListener
Wrapper for holding all DocumentListener callbacks
-
-
Field Summary
Fields Modifier and Type Field Description private final Function1<PdfDocument, Unit>
onDocumentLoaded
private final Function1<Throwable, Unit>
onDocumentLoadFailed
private final Function2<PdfDocument, DocumentSaveOptions, Boolean>
onDocumentSave
private final Function1<PdfDocument, Unit>
onDocumentSaved
private final Function2<PdfDocument, Throwable, Unit>
onDocumentSaveFailed
private final Function1<PdfDocument, Unit>
onDocumentSaveCancelled
private final Function5<PdfDocument, Integer, MotionEvent, PointF, Annotation, Boolean>
onPageClick
private final Function0<Boolean>
onDocumentClick
private final Function2<PdfDocument, Integer, Unit>
onPageChanged
private final Function3<PdfDocument, Integer, Float, Unit>
onDocumentZoomed
private final Function2<PdfDocument, Integer, Unit>
onPageUpdated
-
Constructor Summary
Constructors Constructor Description DocumentListener(Function1<PdfDocument, Unit> onDocumentLoaded, Function1<Throwable, Unit> onDocumentLoadFailed, Function2<PdfDocument, DocumentSaveOptions, Boolean> onDocumentSave, Function1<PdfDocument, Unit> onDocumentSaved, Function2<PdfDocument, Throwable, Unit> onDocumentSaveFailed, Function1<PdfDocument, Unit> onDocumentSaveCancelled, Function5<PdfDocument, Integer, MotionEvent, PointF, Annotation, Boolean> onPageClick, Function0<Boolean> onDocumentClick, Function2<PdfDocument, Integer, Unit> onPageChanged, Function3<PdfDocument, Integer, Float, Unit> onDocumentZoomed, Function2<PdfDocument, Integer, Unit> onPageUpdated)
-
Method Summary
Modifier and Type Method Description final Function1<PdfDocument, Unit>
getOnDocumentLoaded()
final Function1<Throwable, Unit>
getOnDocumentLoadFailed()
final Function2<PdfDocument, DocumentSaveOptions, Boolean>
getOnDocumentSave()
final Function1<PdfDocument, Unit>
getOnDocumentSaved()
final Function2<PdfDocument, Throwable, Unit>
getOnDocumentSaveFailed()
final Function1<PdfDocument, Unit>
getOnDocumentSaveCancelled()
final Function5<PdfDocument, Integer, MotionEvent, PointF, Annotation, Boolean>
getOnPageClick()
final Function0<Boolean>
getOnDocumentClick()
final Function2<PdfDocument, Integer, Unit>
getOnPageChanged()
final Function3<PdfDocument, Integer, Float, Unit>
getOnDocumentZoomed()
final Function2<PdfDocument, Integer, Unit>
getOnPageUpdated()
-
-
Constructor Detail
-
DocumentListener
DocumentListener(Function1<PdfDocument, Unit> onDocumentLoaded, Function1<Throwable, Unit> onDocumentLoadFailed, Function2<PdfDocument, DocumentSaveOptions, Boolean> onDocumentSave, Function1<PdfDocument, Unit> onDocumentSaved, Function2<PdfDocument, Throwable, Unit> onDocumentSaveFailed, Function1<PdfDocument, Unit> onDocumentSaveCancelled, Function5<PdfDocument, Integer, MotionEvent, PointF, Annotation, Boolean> onPageClick, Function0<Boolean> onDocumentClick, Function2<PdfDocument, Integer, Unit> onPageChanged, Function3<PdfDocument, Integer, Float, Unit> onDocumentZoomed, Function2<PdfDocument, Integer, Unit> onPageUpdated)
-
-
Method Detail
-
getOnDocumentLoaded
final Function1<PdfDocument, Unit> getOnDocumentLoaded()
-
getOnDocumentLoadFailed
final Function1<Throwable, Unit> getOnDocumentLoadFailed()
-
getOnDocumentSave
final Function2<PdfDocument, DocumentSaveOptions, Boolean> getOnDocumentSave()
-
getOnDocumentSaved
final Function1<PdfDocument, Unit> getOnDocumentSaved()
-
getOnDocumentSaveFailed
final Function2<PdfDocument, Throwable, Unit> getOnDocumentSaveFailed()
-
getOnDocumentSaveCancelled
final Function1<PdfDocument, Unit> getOnDocumentSaveCancelled()
-
getOnPageClick
final Function5<PdfDocument, Integer, MotionEvent, PointF, Annotation, Boolean> getOnPageClick()
-
getOnDocumentClick
final Function0<Boolean> getOnDocumentClick()
-
getOnPageChanged
final Function2<PdfDocument, Integer, Unit> getOnPageChanged()
-
getOnDocumentZoomed
final Function3<PdfDocument, Integer, Float, Unit> getOnDocumentZoomed()
-
getOnPageUpdated
final Function2<PdfDocument, Integer, Unit> getOnPageUpdated()
-
-
-
-