SnapshotBackstackManager

class SnapshotBackstackManager(textEditLimit: Int = DEFAULT_TEXT_EDIT_LIMIT) : BackstackInform

Constructors

Link copied to clipboard
constructor(textEditLimit: Int = DEFAULT_TEXT_EDIT_LIMIT)

Properties

Link copied to clipboard
open override val canRedo: StateFlow<Boolean>

Notifies if it is possible to redo an action.

Link copied to clipboard
open override val canUndo: StateFlow<Boolean>

Notifies if it is possible to undo an action.

Functions

Link copied to clipboard
fun addState(state: StoryState)

Adds a state by checking the difference between current state and previous one.

Link copied to clipboard
fun addTextState(state: StoryState, position: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard