K3InputMethodState
abstract class K3InputMethodState<S : K3InputMethodState<S, E>, E : K3Editor>(val model: K3Model, val editor: E, val content: K3Content, val touchLayerId: K3LayerId)(source)
Represents the current input method state.
This class is designed to be extensible with new properties for custom state, while allowing the base runtime classes to also update the state.
Inheritors
Properties
Functions
Link copied to clipboard
abstract fun copy(model: K3Model = this.model, editor: E = this.editor, content: K3Content = this.content, touchLayerId: K3LayerId = this.touchLayerId): S
Copies this state with new model, editor, content, and touchLayerId. Any additional custom properties are expected to be unchanged (i.e. copied as is).