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 editing toolbar.

Properties

Link copied to clipboard
open override val configuration: PdfConfiguration?

The PDF configuration used by this toolbar's controller.

Link copied to clipboard

The currently bound annotation editing controller, or {@code null} if unbound.

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

Functions

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

Bind annotation editing controller.

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
open override fun onAnnotationCreated(annotation: Annotation)

Called when annotation has been created.

Link copied to clipboard
open override fun onAnnotationRemoved(annotation: Annotation)

Called when existing annotation has been removed.

Link copied to clipboard
open override fun onAnnotationUpdated(annotation: Annotation)

Called when existing annotation has changed.

Link copied to clipboard
open override fun onAnnotationZOrderChanged(pageIndex: Int, oldOrder: List<Annotation>, newOrder: List<Annotation>)

Called when the z-order of annotations has changed on a specified page.

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

Unbind current annotation editing controller (if any).