Android 12 Developer Preview is here! Try it out, and give us your feedback!

FinishComposingTextCommand

class FinishComposingTextCommand : EditCommand
kotlin.Any
   ↳ androidx.compose.ui.text.input.FinishComposingTextCommand

Finishes the composing text that is currently active. This simply leaves the text as-is, removing any special composing styling or other state that was around it. The cursor position remains unchanged.

Summary

Public constructors

Finishes the composing text that is currently active.

Public methods
Unit

Apply the command on the editing buffer.

Boolean
equals(other: Any?)

Int

String

Public constructors

<init>

FinishComposingTextCommand()

Finishes the composing text that is currently active. This simply leaves the text as-is, removing any special composing styling or other state that was around it. The cursor position remains unchanged.

Public methods

applyTo

fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String