Class

SetComposingTextCommand

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
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

Common
val text: String