{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

InputEventCallback

public interface InputEventCallback


An interface of listening IME events.

Summary

Public methods

abstract void

Called when IME sends some input events.

abstract void

Called when IME triggered IME action.

Public methods

onEditCommands

abstract void onEditCommands(@NonNull List<@NonNull EditCommand> editCommands)

Called when IME sends some input events.

Parameters
@NonNull List<@NonNull EditCommand> editCommands

The list of edit commands.

onImeAction

abstract void onImeAction(@NonNull ImeAction imeAction)

Called when IME triggered IME action.

Parameters
@NonNull ImeAction imeAction

An IME action.