Class

SetComposingTextCommand

Replace the currently composing text with the given text, and set the new cursor position.

Source set: Common
class SetComposingTextCommand(val annotatedString: AnnotatedString, val newCursorPosition: Int) :
    EditCommand

Replace the currently composing text with the given text, and set the new cursor position. Any composing text set previously will be removed automatically.

See setComposingText).

Parameters

annotatedString The composing text.
newCursorPosition The cursor position after setting composing text.

Secondary Constructors

constructor(
    /** The composing text. */
    text: String,
    /** The cursor position after setting composing text. */
    newCursorPosition: Int,
) : this(AnnotatedString(text), newCursorPosition)

Properties

text

Source set: Common
val text: String

Last updated: