Preedit

class Preedit(val fullText: String, val caretPosition: Int, blocks: List<String>, val focusedBlock: Int) : TextInputEvent(source)

Immutable input-method composition state.

The constructor snapshots blocks and exposes an read-only list. Empty text clears active composition.

Parameters

fullText

complete current preedit text.

caretPosition

UTF-16 caret offset within TextInputEvent.Preedit.fullText.

blocks

ordered platform composition blocks.

focusedBlock

selected block index, or -1 when no block is selected.

Throws

when caret or block indices are outside their typed ranges.

Constructors

Link copied to clipboard
constructor(fullText: String, caretPosition: Int, blocks: List<String>, focusedBlock: Int)

Properties

Link copied to clipboard

Detached read-only composition blocks.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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