Window.ICallback.DispatchKeyEvent(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 to process key events.
[Android.Runtime.Register("dispatchKeyEvent", "(Landroid/view/KeyEvent;)Z", "GetDispatchKeyEvent_Landroid_view_KeyEvent_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool DispatchKeyEvent (Android.Views.KeyEvent e);
[<Android.Runtime.Register("dispatchKeyEvent", "(Landroid/view/KeyEvent;)Z", "GetDispatchKeyEvent_Landroid_view_KeyEvent_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DispatchKeyEvent : Android.Views.KeyEvent -> bool
Parameters
- e
- KeyEvent
The key event.
Returns
boolean Return true if this event was consumed.
- Attributes
Remarks
Called to process key events. At the very least your implementation must call android.view.Window#superDispatchKeyEvent
to do the standard key processing.
Java documentation for android.view.Window.Callback.dispatchKeyEvent(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.