AnnotationsView.OnAnnotationEditListener


interface AnnotationsView.OnAnnotationEditListener


Callback interface for events related to the creation and modification of annotations.

Summary

Public functions

Unit

Called when an in-progress interaction successfully produces a finalized PdfAnnotation.

Unit

Called when a failure occurs during the creation or modification of an annotation.

Public functions

onAnnotationCreated

Added in 1.0.0-alpha19
fun onAnnotationCreated(annotation: PdfAnnotation): Unit

Called when an in-progress interaction successfully produces a finalized PdfAnnotation.

Parameters
annotation: PdfAnnotation

The finalized PdfAnnotation object containing the metadata generated by the user's interaction.

onAnnotationError

Added in 1.0.0-alpha19
fun onAnnotationError(throwable: Throwable): Unit

Called when a failure occurs during the creation or modification of an annotation.

Parameters
throwable: Throwable

The underlying cause of the failure.