The second Android 11 Developer Preview is now available, test it out and share your feedback.

InputEventListener

interface InputEventListener
androidx.ui.input.InputEventListener

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

onEditOperations

abstract fun onEditOperations(editOps: List<EditOperation>): Unit

Called when IME sends some input events.

Parameters
editOps: List<EditOperation> The list of edit operations.

onImeAction

abstract fun onImeAction(imeAction: ImeAction): Unit

Called when IME triggered IME action.

Parameters
imeAction: ImeAction An IME action.