View.IOnUnhandledKeyEventListener.OnUnhandledKeyEvent(View, KeyEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- e
- KeyEvent
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.
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.