UndoManager

interface UndoManager

A generic manager for undoing/redoing edits on a PdfFragment. This can be retrieved using getUndoManager.

Functions

Link copied to clipboard
Adds an OnUndoHistoryChangeListener for being notified of changes to the undo manager's edit history (i.e.
Link copied to clipboard
abstract fun canRedo(): Boolean
Returns whether there are edits that can be redone or not.
Link copied to clipboard
abstract fun canUndo(): Boolean
Returns whether there are edits that can be undone or not.
Link copied to clipboard
abstract fun clearHistory()
Clears the history of all currently recorded edits.
Link copied to clipboard
abstract fun redo()
Redoes the next edit or throws an exception if a redo operation is not possible.
Link copied to clipboard
abstract fun undo()
Undoes the last edit or throws an exception if an undo operation is not possible.