The Developer Preview for Android 11 is now available; test it out and share your feedback.

SetComposingTextEditOp

data class SetComposingTextEditOp : EditOperation
kotlin.Any
   ↳ androidx.ui.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.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

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.