enterAnnotatingMode

Starts the annotating mode with the last used annotation tool as the selected one.

Additionally, annotation creator dialog will show up if the default annotation creator has not been set.


open fun enterAnnotatingMode(@NonNull annotationTool: AnnotationTool)

Enter annotation creation mode on the document. Once you invoke this method, you'll get AnnotatingController (through registered OnAnnotatingModeChangeListener) which provides methods for annotation creation with a specified type. Uses default AnnotationToolVariant.

Additionally, annotation creator dialog will show up if the default annotation creator has not been set.

Parameters

annotationTool

Annotation tool to activate once creation mode is entered. Use NONE to just enter creation mode without any annotation creation tool selected.


open fun enterAnnotatingMode(@NonNull annotationTool: AnnotationTool, @NonNull annotationToolVariant: AnnotationToolVariant)

Enter annotation creation mode on the document. Once you invoke this method, you'll get AnnotatingController (through registered OnAnnotatingModeChangeListener) which provides methods for annotation creation with a specified type.

Additionally, annotation creator dialog will show up if the default annotation creator has not been set.

Parameters

annotationTool

Annotation tool to activate once creation mode is entered. Use NONE to just enter creation mode without an annotation creation tool selected.

annotationToolVariant

Specifies the variant of the annotation tool in which to start this mode.