InputMethodManager.DispatchKeyEventFromInputMethod(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.
Provides the default implementation of InputConnection#sendKeyEvent(KeyEvent)
, which
is expected to dispatch an keyboard event sent from the IME to an appropriate event target
depending on the given View
and the current focus state.
[Android.Runtime.Register("dispatchKeyEventFromInputMethod", "(Landroid/view/View;Landroid/view/KeyEvent;)V", "", ApiSince=24)]
public void DispatchKeyEventFromInputMethod (Android.Views.View? targetView, Android.Views.KeyEvent e);
[<Android.Runtime.Register("dispatchKeyEventFromInputMethod", "(Landroid/view/View;Landroid/view/KeyEvent;)V", "", ApiSince=24)>]
member this.DispatchKeyEventFromInputMethod : Android.Views.View * Android.Views.KeyEvent -> unit
Parameters
- targetView
- View
the default target view. If null
is specified, then this method
tries to find a good event target based on the current focus state.
- e
- KeyEvent
- Attributes
Remarks
Provides the default implementation of InputConnection#sendKeyEvent(KeyEvent)
, which is expected to dispatch an keyboard event sent from the IME to an appropriate event target depending on the given View
and the current focus state.
CAUTION: This method is provided only for the situation where InputConnection#sendKeyEvent(KeyEvent)
needs to be implemented without relying on BaseInputConnection
. Do not use this API for anything else.
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.