K3TestInputMethodState

class K3TestInputMethodState(model: K3Model, editor: K3TestEditor, content: K3Content = K3Content.Empty, touchLayerId: K3LayerId = K3LayerId.BASE) : K3InputMethodState<K3TestInputMethodState, K3TestEditor> (source)

Constructors

Link copied to clipboard
constructor(model: K3Model, editor: K3TestEditor, content: K3Content = K3Content.Empty, touchLayerId: K3LayerId = K3LayerId.BASE)

Properties

Link copied to clipboard

The currently cached content. Matches the editor's real content on a best-effort basis.

Link copied to clipboard

The current editor we are connected to.

Link copied to clipboard

The current K3Model active. Is used for all sorts of matching, including transform rules. A change in model MUST cause a reset of content, else the behavior is undefined due to possible stale markers. Prefer to use K3InputMethod.switchModel() to ensure correct model switch behavior.

Link copied to clipboard

The current touch layer id that is active. Only relevant for soft keyboards.

Functions

Link copied to clipboard
open override fun copy(model: K3Model = this.model, editor: K3TestEditor = this.editor, content: K3Content = this.content, touchLayerId: K3LayerId = this.touchLayerId): K3TestInputMethodState

Copies this state with new model, editor, content, and touchLayerId. Any additional custom properties are expected to be unchanged (i.e. copied as is).

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
override fun hashCode(): Int