Interface

EditCommand

EditCommand is a command representation for the platform IME API function calls.

Source set: Common
public interface 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.

Functions

applyTo

Source set: Common
public fun applyTo(buffer: EditingBuffer)

Apply the command on the editing buffer.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: