接口: RootAutomatorOptions
2022/10/22约 188 字小于 1 分钟
root_automator.RootAutomatorOptions
创建 RootAutomator 的选项,包括是否使用 root 权限、adb 权限,或者显式指定输入设备。
继承关系
↳
RootAutomatorOptions
目录
属性
属性
inputDevice
• Optional inputDevice: string
触摸输入设备的路径,比如 /dev/input/event5。
如果不指定,则会自动检测,但检测失败时会抛出异常。你也可以手动在终端运行 getevent -t,然后在屏幕上操作,看输入事件的设备路径是什么。
orientationAware
• Optional orientationAware: boolean
是否根据屏幕方向自动切换坐标系。若为 true,在横屏时坐标会相对横屏屏幕左上角;若为 false,则和 Rhino API 的 RootAutomator 行为一致。默认为 true。
