Defines an interactable undo history.

Summary

Public functions

Unit

Clears all undo and redo history up to this point.

Cmn
Unit

Re-applies a change that was previously reverted via undo.

Cmn
Unit

Reverts the latest edit action or a group of actions that are merged together.

Cmn

Public properties

Boolean

Whether it is possible to execute a meaningful redo action right now.

Cmn
Boolean

Whether it is possible to execute a meaningful undo action right now.

Cmn

Public functions

clearHistory

fun clearHistory(): Unit

Clears all undo and redo history up to this point.

redo

fun redo(): Unit

Re-applies a change that was previously reverted via undo.

undo

fun undo(): Unit

Reverts the latest edit action or a group of actions that are merged together. Calling it repeatedly can continue undoing the previous actions.

Public properties

canRedo

val canRedoBoolean

Whether it is possible to execute a meaningful redo action right now. If this value is false, calling redo would be a no-op.

canUndo

val canUndoBoolean

Whether it is possible to execute a meaningful undo action right now. If this value is false, calling undo would be a no-op.