Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 24.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

ImeKeyMonitor

public interface ImeKeyMonitor

android.support.v17.leanback.widget.ImeKeyMonitor
Known Indirect Subclasses


Interface for an EditText subclass that can delegate calls to onKeyPreIme up to a registered listener.

Used in editable actions within GuidedStepFragment to 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.

Summary

Nested classes

interface ImeKeyMonitor.ImeKeyListener

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

Public methods

abstract void setImeKeyListener(ImeKeyMonitor.ImeKeyListener listener)

Set the listener for this edit text object.

Public methods

setImeKeyListener

added in version 24.1.0
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.

Parameters
listener ImeKeyMonitor.ImeKeyListener