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 formListeners(onFormElementClickedListener: (FormElement) -> Boolean = { _ -> false }, onFormElementViewUpdatedListener: (formElement: FormElement) -> Boolean = { _ -> false }, onFormElementValidationSuccess: (formElement: FormElement) -> Boolean = { _ -> false }, onFormElementValidationFailed: (formElement: FormElement, validationError: String) -> Boolean = { _, _ -> false }, onEnterFormElementEditingMode: (formEditingController: FormEditingController) -> Boolean = { _ -> false }, onChangeFormElementEditingMode: (formEditingController: FormEditingController) -> Boolean = { _ -> false }, onExitFormElementEditingMode: (formEditingController: FormEditingController) -> Boolean = { _ -> false }, onFormElementUpdatedListener: (formElement: FormElement) -> Boolean = { _ -> false }, onFormElementDeselectedListener: (formElement: FormElement, reselected: Boolean) -> Boolean = { _, _ -> false }, onFormElementSelectedListener: (formElement: FormElement) -> Boolean = { _ -> false }, onIsFormElementClickableListener: (FormElement) -> Boolean = { _ -> true }, onPrepareFormElementSelection: (FormElement) -> Boolean? = { _ -> true }): FormListener
Link copied to clipboard
fun instantListeners(onAuthenticationFailed: (InstantPdfDocument, InstantException) -> Unit? = null, onAuthenticationFinished: (InstantPdfDocument, String) -> Unit? = null, onSyncStarted: (InstantPdfDocument) -> Unit? = null, onSyncError: (InstantPdfDocument, InstantException) -> Unit? = null, onSyncFinished: (InstantPdfDocument) -> Unit? = null, onDocumentStateChanged: (InstantPdfDocument, InstantDocumentState) -> Unit? = null, onDocumentCorrupted: (InstantPdfDocument) -> Unit? = null): InstantDocumentListener
Link copied to clipboard
fun uiListeners(onImmersiveModeEnabled: (Boolean) -> Unit? = {}, onDocumentScroll: (ScrollState) -> Unit? = {}): UiListener