AnnotationsView.OnAnnotationEditListener


public interface AnnotationsView.OnAnnotationEditListener


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

Summary

Public methods

abstract void

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

abstract void

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

Public methods

onAnnotationCreated

Added in 1.0.0-alpha19
abstract void onAnnotationCreated(@NonNull PdfAnnotation annotation)

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

Parameters
@NonNull PdfAnnotation annotation

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

onAnnotationError

Added in 1.0.0-alpha19
abstract void onAnnotationError(@NonNull Throwable throwable)

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

Parameters
@NonNull Throwable throwable

The underlying cause of the failure.