Class

SetComposingTextCommand

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

Source set: Common
public class SetComposingTextCommand(
    public val annotatedString: AnnotatedString,
    public 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.

Properties

text

Source set: Common
public val text: String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: