共用方式為


Window.InjectInputEvent(InputEvent) Method

Definition

Inject an event to window locally.

[Android.Runtime.Register("injectInputEvent", "(Landroid/view/InputEvent;)V", "GetInjectInputEvent_Landroid_view_InputEvent_Handler")]
public virtual void InjectInputEvent (Android.Views.InputEvent? e);
[<Android.Runtime.Register("injectInputEvent", "(Landroid/view/InputEvent;)V", "GetInjectInputEvent_Landroid_view_InputEvent_Handler")>]
abstract member InjectInputEvent : Android.Views.InputEvent -> unit
override this.InjectInputEvent : Android.Views.InputEvent -> unit

Parameters

e
InputEvent

A key or touch event to inject to this window.

Attributes

Remarks

Inject an event to window locally.

Java documentation for android.view.Window.injectInputEvent(android.view.InputEvent).

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