public interface

ViewCompat.OnUnhandledKeyEventListenerCompat

 androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat

Overview

Interface definition for a callback to be invoked when a hardware key event hasn't been handled by the view hierarchy.

Summary

Methods
public booleanonUnhandledKeyEvent(View v, KeyEvent event)

Called when a hardware key is dispatched to a view after being unhandled during normal dispatch.

Methods

public boolean onUnhandledKeyEvent(View v, KeyEvent event)

Called when a hardware key is dispatched to a view after being unhandled during normal dispatch.

Parameters:

v: The view the key has been dispatched to.
event: The KeyEvent object containing information about the event.

Returns:

true if the listener has consumed the event, false otherwise.