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

InputEventCallback

interface InputEventCallback
androidx.compose.ui.text.input.InputEventCallback

An interface of listening IME events.

Summary

Public methods
abstract Unit

Called when IME sends some input events.

abstract Unit
onImeAction(imeAction: ImeAction)

Called when IME triggered IME action.

Public methods

onEditCommands

abstract fun onEditCommands(editCommands: List<EditCommand>): Unit

Called when IME sends some input events.

Parameters
editCommands: List<EditCommand> The list of edit commands.

onImeAction

abstract fun onImeAction(imeAction: ImeAction): Unit

Called when IME triggered IME action.

Parameters
imeAction: ImeAction An IME action.