Default Listeners
object DefaultListeners
Contains the default values used by com.pspdfkit.jetpack.compose.views.DocumentView
Functions
Link copied to clipboard
fun annotationListeners(onPrepareAnnotationSelection: (AnnotationSelectionController, Annotation, Boolean) -> Boolean? = { _, _, _ -> true }, onAnnotationSelected: (Annotation, Boolean) -> Unit? = { _, _ -> }, onAnnotationSelectionFinished: (List<Annotation>, Boolean) -> Unit? = { _, _ -> }, onAnnotationDeselected: (Annotation, Boolean) -> Unit? = { _, _ -> }): AnnotationListener
Link copied to clipboard
fun documentListeners(onDocumentLoaded: (PdfDocument) -> Unit? = {}, onDocumentLoadFailed: (Throwable) -> Unit? = {}, onDocumentSave: (PdfDocument, DocumentSaveOptions) -> Boolean? = { _, _ -> true }, onDocumentSaved: (PdfDocument) -> Unit? = { _ -> }, onDocumentSaveFailed: (PdfDocument, Throwable) -> Unit? = { _, _ -> }, onDocumentSaveCancelled: (PdfDocument?) -> Unit? = { _ -> }, onPageClick: (PdfDocument, Int, MotionEvent?, PointF?, Annotation?) -> Boolean? = { _, _, _, _, _ -> false }, onDocumentClick: () -> Boolean? = { false }, onPageChanged: (PdfDocument, Int) -> Unit? = { _, _ -> }, onDocumentZoomed: (PdfDocument, Int, Float) -> Unit? = { _, _, _ -> }, onPageUpdated: (PdfDocument, Int) -> Unit? = { _, _ -> }): DocumentListener
Link copied to clipboard
fun uiListeners(onImmersiveModeEnabled: (Boolean) -> Unit? = {}, onDocumentScroll: (ScrollState) -> Unit? = {}): UiListener