Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet?)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int)

Types

Link copied to clipboard
object Companion

Companion object containing style attributes for the annotation creation toolbar.

Link copied to clipboard

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. The annotation creation toolbar will automatically handle all the logic.

Properties

Link copied to clipboard
open override val configuration: PdfConfiguration?

The PDF configuration used by this toolbar's controller.

Link copied to clipboard

Hooked controller for managing annotation creation (if any).

Link copied to clipboard

Default item ID -> annotation tool/variant mappings.

Link copied to clipboard
open override val fragment: PdfFragment?

The PDF fragment associated with this toolbar's controller.

Link copied to clipboard
open override val isControllerBound: Boolean
Link copied to clipboard

Holds which menu item IDs need to display the circular style indicators.

Functions

Link copied to clipboard
open override fun bindController(controller: AnnotationCreationController)

Binds controller for managing annotation creation mode.

Link copied to clipboard
open override fun getLifecycleOwner(): LifecycleOwner?

Returns the lifecycle owner for coroutine scope management.

Link copied to clipboard
open override fun isControllerBound(): Boolean

Returns true if the controller is bound.

Link copied to clipboard

Called when the settings changed in the active annotation creation mode. You can then get the new values from the provided {@link AnnotationCreationController}.

Link copied to clipboard

Called then annotation editing mode changes, meaning another annotation is being selected for editing.

Link copied to clipboard

Called when annotation editing mode has been entered.

Link copied to clipboard

Called when annotation editing mode has been exited.

Link copied to clipboard

Called when the menu items are being grouped. This allows us to set default selected tool and initialize style indicator icons.

Link copied to clipboard

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
open override fun unbindController()

Unbinds controller for managing annotation creation mode.