AnnotationEditingController

Default controller given when entering annotation editing mode. Used to control annotation editing mode actions.

Functions

Link copied to clipboard
abstract fun bindAnnotationInspectorController(@NonNull annotationInspectorController: AnnotationInspectorController)
Binds to the annotation inspector controller for managing annotation inspector.
Link copied to clipboard
Deletes currently selected annotations from the document.
Link copied to clipboard
abstract fun enterAudioPlaybackMode()
Starts playback mode for the currently selected sound annotation.
Link copied to clipboard
Starts recording mode for the currently selected sound annotation.
Link copied to clipboard
Returns an annotation manager which you can use to register listeners from the controller.
Link copied to clipboard
Returns an active configuration.
Link copied to clipboard
Returns currently edited annotation (if any).
Link copied to clipboard
Returns the the currently edited annotation - only if there's just a single one being edited.
Link copied to clipboard
Returns whether there are any currently selected annotations.
Link copied to clipboard
Checks if all currently edited annotations can be copied.
abstract fun isCopyEnabled(@Nullable annotations: List<Annotation>): Boolean
Checks if all provided annotations can be copied.
Link copied to clipboard
open fun isCutEnabled(): Boolean
Checks if all currently edited annotations can be cut.
open fun isCutEnabled(@Nullable annotations: List<Annotation>): Boolean
Checks if all provided annotations can be cut.
Link copied to clipboard
Checks if all currently edited annotations can be deleted.
abstract fun isDeleteEnabled(@Nullable annotations: List<Annotation>): Boolean
Checks if all provided annotations can be deleted.
Link copied to clipboard
abstract fun recordAnnotationZIndexEdit(@NonNull annotation: Annotation, oldZIndex: Int, newZIndex: Int)
Records the z-index being changed on the specified annotation.
Link copied to clipboard
Saves currently selected annotations to the document.
Link copied to clipboard
Whether annotation inspector toolbar icon should be visible.
Link copied to clipboard
Whether play button should be displayed for the selected sound annotation.
Link copied to clipboard
Whether record button should be displayed for the selected sound annotation.
Link copied to clipboard
abstract fun showAnnotationEditor(@NonNull annotation: Annotation)
Shows annotation editor for the passed annotation.
Link copied to clipboard
Temporarily hides the selected/edited annotation view and shows its relative position on the page.
Link copied to clipboard
abstract fun startRecording()
Starts recording the edits.
Link copied to clipboard
abstract fun stopRecording()
Stops recording the edits, notifies the result and clears current record, so calling startRecording will start from clean state.
Link copied to clipboard
Displays/hides an annotation inspector for the selected annotation.
Link copied to clipboard
Unbinds from previously bound annotation inspector controller.