Package-level declarations

Editing action bar / toolbar and supporting classes.

Types

Link copied to clipboard
Represents a single menu item in the deleted View ContextualToolbar.
Link copied to clipboard

Adapter that wraps DocumentEditingController to implement UndoProvider interface. Used by document editor toolbar to work with UndoRedoToolbarHelper.

Link copied to clipboard

Physical docking slot of a contextual toolbar on the screen — the successor of the deleted ToolbarCoordinatorLayout.LayoutParams.Position (toolbar migration Phase 5).

Link copied to clipboard

Adapter that wraps UndoManager to implement UndoProvider interface. Used by annotation toolbars to work with UndoRedoToolbarHelper.

Link copied to clipboard
interface UndoProvider

Common interface for undo/redo functionality used by UndoRedoToolbarHelper. This interface allows the helper to work with both com.pspdfkit.undo.UndoManager (for annotation toolbars) and com.pspdfkit.ui.special_mode.controller.DocumentEditingController (for document editor) through adapter implementations.

Link copied to clipboard
class UndoRedoToolbarHelper @JvmOverloads constructor(host: UndoRedoToolbarHelper.UndoRedoToolbarHost, groupId: Int, undoItemId: Int, redoItemId: Int, ioDispatcher: CoroutineDispatcher = Dispatchers.IO)

Helper class that encapsulates all undo/redo functionality for toolbars. This class handles undo/redo menu item creation, async button state updates, and undo/redo action execution.

Functions

Link copied to clipboard
fun View.applyWindowInsets(left: Boolean = false, top: Boolean = false, right: Boolean = false, bottom: Boolean = false)

This should be used to apply inset to the view to support correct edge to edge behaviour