Annotation Creation Toolbar
open class AnnotationCreationToolbar : ContextualToolbar<T> , AnnotationManager.OnAnnotationCreationModeSettingsChangeListener, AnnotationManager.OnAnnotationCreationModeChangeListener, OnUndoHistoryChangeListener
A toolbar used for creating annotations.
Types
Link copied to clipboard
interface ItemToAnnotationToolMapper
A mapper that allows you to map the IDs of AnnotationCreationToolbar menu items with the annotation tool (and variant) you want it to activate/deactivate.
Properties
Functions
Link copied to clipboard
Binds controller for managing annotation creation mode.
Link copied to clipboard
Returns
true
if the controller is bound.Link copied to clipboard
Called when the settings changed in the active annotation creation mode.
Link copied to clipboard
Called when the annotation creation mode has changed, meaning another annotation type is being selected for creation.
Link copied to clipboard
Called when the annotation creation mode has been entered.
Link copied to clipboard
Called when the annotation creation mode has been exited.
Link copied to clipboard
open fun onMenuItemsGrouped(@NonNull menuItems: List<ContextualToolbarMenuItem>): List<ContextualToolbarMenuItem>
Called when the menu items are being grouped.
Link copied to clipboard
Notifies the observer that the undo history has changed inside the undo manager.
Link copied to clipboard
open fun setItemToAnnotationToolMapper(@Nullable itemToAnnotationToolMapper: AnnotationCreationToolbar.ItemToAnnotationToolMapper)
Mapper for mapping annotation creation tool menu items with the tool/variant they want to activate.
Link copied to clipboard
Whether to show the stylus button on the annotation toolbar when a stylus is detected as connected.
Link copied to clipboard
Unbinds controller for managing annotation creation mode.