Common/All 选择一个或多个选项 Select a platform
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
fun redo (): Unit
Re-applies a change that was previously reverted via 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
val canRedo : Boolean
Whether it is possible to execute a meaningful redo action right now. If this value is false, calling redo
would be a no-op.
val canUndo : Boolean
Whether it is possible to execute a meaningful undo action right now. If this value is false, calling undo
would be a no-op.
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]