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

EditCommand

interface EditCommand
androidx.compose.ui.text.input.EditCommand

EditCommand is a command representation for the platform IME API function calls. The commands from the IME as function calls are translated into command pattern and used by TextInputService.startInput. For example, as a result of commit text function call by IME CommitTextCommand is created.

Summary

Public methods
abstract Unit

Apply the command on the editing buffer.

Public methods

applyTo

abstract fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.