Added in API level 28
    OnUnhandledKeyEventListener
interface OnUnhandledKeyEventListener
| android.view.View.OnUnhandledKeyEventListener | 
Interface definition for a callback to be invoked when a hardware key event hasn't been handled by the view hierarchy.
Summary
| Public methods | |
|---|---|
| abstract Boolean | onUnhandledKeyEvent(v: View!, event: KeyEvent!)Called when a hardware key is dispatched to a view after being unhandled during normal  | 
Public methods
onUnhandledKeyEvent
Added in API level 28
      abstract fun onUnhandledKeyEvent(
v: View!,
event: KeyEvent!
): Boolean
Called when a hardware key is dispatched to a view after being unhandled during normal KeyEvent dispatch.
| Parameters | |
|---|---|
| v | View!: The view the key has been dispatched to. | 
| event | KeyEvent!: The KeyEvent object containing information about the event. | 
| Return | |
|---|---|
| Boolean | trueif the listener has consumed the event,falseotherwise. | 
