Interface for an EditText subclass that can delegate calls to onKeyPreIme up to a registered listener.
Used in editable actions within
allow for custom back key handling. Specifically, this is used to implement the behavior that
dismissing the IME also clears edit text focus. Clients who need to supply custom layouts for
GuidedActionsStylist with their own EditText classes should satisfy this interface in
order to inherit this behavior.
Listener interface for key events intercepted pre-IME by edit text objects.
Set the listener for this edit text object.
public abstract void setImeKeyListener (ImeKeyMonitor.ImeKeyListener listener)
Set the listener for this edit text object. The listener's onKeyPreIme method will be invoked from the host edit text's onKeyPreIme method.
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-12-27 UTC.