addAnnotationToPage

open fun addAnnotationToPage(@NonNull annotation: Annotation, selectImmediately: Boolean)

Adds annotation to page asynchronously, refreshing rendering in all UI components.

Parameters

annotation

The Annotation to add.

selectImmediately

True when annotation should be selected for editing immediately after being added to the page. This also enters annotation editing mode via enterAnnotationEditingMode.


open fun addAnnotationToPage(@NonNull annotation: Annotation, selectImmediately: Boolean, @Nullable completeAction: Runnable)

Adds annotation to page asynchronously, refreshing rendering in all UI components.

Parameters

annotation

The Annotation to add.

selectImmediately

True when annotation should be selected for editing immediately after being added to the page. This also enters annotation editing mode via enterAnnotationEditingMode.

completeAction

Action that should be executed immediately after annotation has been added to the page.