Package-level declarations

Types

Link copied to clipboard
data class DrawInfo(val editable: Boolean = true, val focus: Int? = null, val position: Int = 0, val extraData: Map<String, Any> = emptyMap(), val selectMode: Boolean = false, val selection: Selection? = null)

The class holds the information of the content to be draw by the SDK.

Link copied to clipboard
data class DrawState(val stories: List<DrawStory> = emptyList(), val focus: Int? = null)

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.

Link copied to clipboard
data class DrawStory(val storyStep: StoryStep, val position: Int, val isSelected: Boolean = false, val cursor: Selection? = null)

Class meant to be draw in the screen. It contains both the information of a story step and meta information and the state of the TextEditor like if the message is selected

Link copied to clipboard
Link copied to clipboard
data class TextInput(val text: String, val start: Int, val end: Int)