BackstackAction
Back stack action, the classes of this sealed class represent that actions that the back stack manager can handle and revert.
Inheritors
Types
Link copied to clipboard
Adding a single story
Link copied to clipboard
Deleting many stories
Link copied to clipboard
Deleting a single story
Link copied to clipboard
data class StoryStateChange(val storyStep: StoryStep, val position: Int) : BackstackAction, SingleAction
A change in the state of the story, with the exception of a text change.
Link copied to clipboard
data class StoryTextChange(val storyStep: StoryStep, val position: Int) : BackstackAction, SingleAction
A change in the text of the story. There's a separation between StoryTextChange and StoryStateChange because StoryTextChange and not saved as a unit for usability and performance reasons. A user wouldn't like to revert character by character so the BackstackManager must handle merging them.