UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

用户界面自动化活动

上次更新日期 2026年5月14日

PressHardwareButton

按下已连接设备上的硬件按钮

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

PressHardwareButton(HardwareButton, MobileOptions.HardwareButtonOptions)

PressHardwareButton(
	HardwareButton button,
	MobileOptions. PressHardwareButtonOptions options = null
)
PressHardwareButton(
	HardwareButton button,
	MobileOptions. PressHardwareButtonOptions options = null
)

button HardwareButton :要按下的按钮。可选择以下选项:

* `HomeButton`
* `BackButton`
* `SwitchAppButton`
* `HomeButton`
* `BackButton`
* `SwitchAppButton`

options MobileOptions.PressHardwareButtonOptions (可选):为PressHardwareButton操作指定MobileOptions.PressHardwareButtonOptions 。默认值为 null。

  • 定义
  • PressHardwareButton(HardwareButton, MobileOptions.HardwareButtonOptions)

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新