added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

ImeKeyMonitor.ImeKeyListener

public static interface ImeKeyMonitor.ImeKeyListener

androidx.leanback.widget.ImeKeyMonitor.ImeKeyListener


Listener interface for key events intercepted pre-IME by edit text objects.

Summary

Public methods

abstract boolean onKeyPreIme(EditText editText, int keyCode, KeyEvent event)

Callback invoked from EditText's onKeyPreIme method override.

Public methods

onKeyPreIme

added in version 1.0.0
public abstract boolean onKeyPreIme (EditText editText, 
                int keyCode, 
                KeyEvent event)

Callback invoked from EditText's onKeyPreIme method override. Returning true tells the caller that the key event is handled and should not be propagated.

Parameters
editText EditText

keyCode int

event KeyEvent

Returns
boolean