Google is committed to advancing racial equity for Black communities. See how.

SetComposingTextEditOp

data class SetComposingTextEditOp : EditOperation
kotlin.Any
   ↳ androidx.compose.ui.text.input.SetComposingTextEditOp

An edit operation represents setComposingText callback from InputMethod

Summary

Public constructors
<init>(text: String, newCursorPosition: Int)

An edit operation represents setComposingText callback from InputMethod

Public methods
Unit

Processes editing buffer with this edit operation.

Properties
Int

The cursor position after setting composing text.

String

The composing text.

Public constructors

<init>

SetComposingTextEditOp(
    text: String,
    newCursorPosition: Int)

An edit operation represents setComposingText callback from InputMethod

Public methods

process

fun process(buffer: EditingBuffer): Unit

Processes editing buffer with this edit operation.

Properties

newCursorPosition

val newCursorPosition: Int

The cursor position after setting composing text. See original setComposingText API docs for more details.

text

val text: String

The composing text.