onEditorAction

abstract fun onEditorAction(v: View?, actionId: Int, event: KeyEvent?): Boolean

Called when an action is being performed.

Return

Return true if you have consumed the action, else false.

Parameters

v

The view that was clicked.

actionId

Identifier of the action. This will be either the identifier you supplied, or EditorInfo.IME_NULL if being called due to the enter key being pressed.

event

If triggered by an enter key, this is the event; otherwise, this is null.