UndoProvider

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.

Inheritors

Functions

Link copied to clipboard
abstract fun canRedo(): Boolean

Checks if redo operation is possible.

Link copied to clipboard
abstract fun canUndo(): Boolean

Checks if undo operation is possible.

Link copied to clipboard
abstract fun redo()

Performs redo operation.

Link copied to clipboard
abstract fun undo()

Performs undo operation.