Dela via


View.IOnUnhandledKeyEventListener.OnUnhandledKeyEvent(View, KeyEvent) Method

Definition

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

[Android.Runtime.Register("onUnhandledKeyEvent", "(Landroid/view/View;Landroid/view/KeyEvent;)Z", "GetOnUnhandledKeyEvent_Landroid_view_View_Landroid_view_KeyEvent_Handler:Android.Views.View/IOnUnhandledKeyEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)]
public bool OnUnhandledKeyEvent (Android.Views.View? v, Android.Views.KeyEvent? e);
[<Android.Runtime.Register("onUnhandledKeyEvent", "(Landroid/view/View;Landroid/view/KeyEvent;)Z", "GetOnUnhandledKeyEvent_Landroid_view_View_Landroid_view_KeyEvent_Handler:Android.Views.View/IOnUnhandledKeyEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)>]
abstract member OnUnhandledKeyEvent : Android.Views.View * Android.Views.KeyEvent -> bool

Parameters

v
View

The view the key has been dispatched to.

Returns

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

Attributes

Remarks

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

Java documentation for android.view.View.OnUnhandledKeyEventListener.onUnhandledKeyEvent(android.view.View, android.view.KeyEvent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to