Package io.writeopia.sdk.backstack
Interface BackstackManager
-
- All Implemented Interfaces:
-
io.writeopia.sdk.backstack.BackstackInform
public interface BackstackManager implements BackstackInform
Manager for backstack. Implementations of this interface are responsible to coordinate undo and redo requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBackstackManager.Companion
-
Method Summary
Modifier and Type Method Description abstract StoryStatepreviousState(StoryState state)Moves to the previous state available. abstract StoryStatenextState(StoryState state)Moves to the next state available. abstract UnitaddAction(BackstackAction action)Adds an action to the backstack. -
-
Method Detail
-
previousState
abstract StoryState previousState(StoryState state)
Moves to the previous state available.
-
nextState
abstract StoryState nextState(StoryState state)
Moves to the next state available. It is only possible to move the next state if the user has undone an action.
-
addAction
abstract Unit addAction(BackstackAction action)
Adds an action to the backstack.
-
-
-
-