UiAutomation.InjectInputEvent(InputEvent, Boolean) 方法

定义

用于注入任意输入事件的方法。

[Android.Runtime.Register("injectInputEvent", "(Landroid/view/InputEvent;Z)Z", "")]
public bool InjectInputEvent(Android.Views.InputEvent? e, bool sync);
[<Android.Runtime.Register("injectInputEvent", "(Landroid/view/InputEvent;Z)Z", "")>]
member this.InjectInputEvent : Android.Views.InputEvent * bool -> bool

参数

e
InputEvent

要注入的事件。

sync
Boolean

是否同步注入事件。

返回

事件注入是否成功。

属性

注解

用于注入任意输入事件的方法。

此方法等待所有窗口容器动画和图面操作完成。

<strong Note:</strong>> It is caller to recycle the event.

适用于 . 的 android.app.UiAutomation.injectInputEvent(android.view.InputEvent, boolean)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于