InputMethodManager.DispatchKeyEventFromInputMethod(View, KeyEvent) Method

Definition

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.

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.

Java documentation for android.view.inputmethod.InputMethodManager.dispatchKeyEventFromInputMethod(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