Class

CommitTextCommand

Commit final text to the text box and set the new cursor position.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
class CommitTextCommand(val annotatedString: AnnotatedString, val newCursorPosition: Int) :
    EditCommand

Commit final text to the text box and set the new cursor position.

See commitText).

Parameters

annotatedString The text to commit.
newCursorPosition The cursor position after inserted text.

Secondary Constructors

constructor(
    /** The text to commit. We ignore any styles in the original API. */
    text: String,
    /** The cursor position after setting composing text. */
    newCursorPosition: Int,
) : this(AnnotatedString(text), newCursorPosition)

Properties

Common
val text: String