kmp-settings
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
kmp-settings
settings-core
/
io.github.mlmgames.settings.core.managers
/
UndoManager
Undo
Manager
class
UndoManager
<
T
>
(
repository
:
SettingsRepository
<
T
>
,
maxHistory
:
Int
=
20
)
Members
Constructors
Undo
Manager
Link copied to clipboard
constructor
(
repository
:
SettingsRepository
<
T
>
,
maxHistory
:
Int
=
20
)
Properties
can
Redo
Link copied to clipboard
val
canRedo
:
StateFlow
<
Boolean
>
can
Undo
Link copied to clipboard
val
canUndo
:
StateFlow
<
Boolean
>
Functions
clear
History
Link copied to clipboard
fun
clearHistory
(
)
get
Redo
Description
Link copied to clipboard
fun
getRedoDescription
(
)
:
String
?
get
Undo
Description
Link copied to clipboard
fun
getUndoDescription
(
)
:
String
?
record
Change
Link copied to clipboard
fun
recordChange
(
fieldName
:
String
,
oldValue
:
Any
?
,
newValue
:
Any
?
)
redo
Link copied to clipboard
suspend
fun
redo
(
)
:
Boolean
undo
Link copied to clipboard
suspend
fun
undo
(
)
:
Boolean