CommitTextEditOp

data class CommitTextEditOp : EditOperation
kotlin.Any
   ↳ androidx.ui.input.CommitTextEditOp

An edit operation represent commitText callback from InputMethod.

Summary

Public constructors

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

An edit operation represent commitText callback from InputMethod.

Public methods

Unit

Processes editing buffer with this edit operation.

Properties

Int

The cursor position after inserted text.

String

The text to commit.

Public constructors

<init>

CommitTextEditOp(
    text: String,
    newCursorPosition: Int)

An edit operation represent commitText 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 inserted text. See original commitText API docs for more details.

text

val text: String

The text to commit. We ignore any styles in the original API.