Package-level declarations

Types

Link copied to clipboard
sealed class LastEdit

Last edition. This signs how the last edition in the Document was made and it allows the SDK to react properly, for example saving just one line of change instead saving the whole document.

Link copied to clipboard
data class PositionNode(val parentId: String, val position: Int, val nextPosition: PositionNode? = null)
Link copied to clipboard
data class Selection(val start: Int, val end: Int, val position: Int)

Class the descriptions the position of the text cursor.

Link copied to clipboard
data class StoryState(val stories: Map<Int, StoryStep>, val lastEdit: LastEdit = LastEdit.Nothing, val focus: Int? = null, val selection: Selection = Selection.start())

The state of document of the TextEditor of Writeopia. This class has all the stories in their updated state and which one has the current focus.