UndoRedoToolbarHost

Interface that must be implemented by toolbars using this helper.

Inheritors

Properties

Link copied to clipboard

The PDF configuration used by this toolbar, or null if not available.

Link copied to clipboard
abstract val fragment: PdfFragment?

The PDF fragment associated with this toolbar, or null if not available.

Functions

Link copied to clipboard

Finds a menu item by its ID.

Link copied to clipboard

Returns the lifecycle owner for coroutine scope. For Fragment-based toolbars, return fragment?.viewLifecycleOwner. For View-based toolbars, return ViewTreeLifecycleOwner.get(view).

Link copied to clipboard
abstract fun setMenuItemEnabled(@IdRes id: Int, enabled: Boolean): Boolean

Enables or disables a menu item by its ID.