IInputMethodSession.DispatchKeyEvent 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.
This method is called when a key is pressed.
[Android.Runtime.Register("dispatchKeyEvent", "(ILandroid/view/KeyEvent;Landroid/view/inputmethod/InputMethodSession$EventCallback;)V", "GetDispatchKeyEvent_ILandroid_view_KeyEvent_Landroid_view_inputmethod_InputMethodSession_EventCallback_Handler:Android.Views.InputMethods.IInputMethodSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void DispatchKeyEvent(int seq, Android.Views.KeyEvent? e, Android.Views.InputMethods.IInputMethodSessionEventCallback? callback);
[<Android.Runtime.Register("dispatchKeyEvent", "(ILandroid/view/KeyEvent;Landroid/view/inputmethod/InputMethodSession$EventCallback;)V", "GetDispatchKeyEvent_ILandroid_view_KeyEvent_Landroid_view_inputmethod_InputMethodSession_EventCallback_Handler:Android.Views.InputMethods.IInputMethodSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DispatchKeyEvent : int * Android.Views.KeyEvent * Android.Views.InputMethods.IInputMethodSessionEventCallback -> unit
Parameters
- seq
- Int32
The sequence identifier used to match the event with its completion callback.
- e
- KeyEvent
The key event.
- callback
- IInputMethodSessionEventCallback
The callback that receives the event's handled status after processing.
- Attributes
Remarks
This method is called when a key is pressed.
When callback is not null, report whether the input method handled the event through it. If the event is not handled, the caller can handle it.
Android reference for android.view.inputmethod.InputMethodSession.dispatchKeyEvent.
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.