UiPath Documentation
activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités UIAutomation

Dernière mise à jour 16 avr. 2026

PressHardwareButton

Appuie sur un bouton matériel de l'appareil connecté

Définition

Espace de noms: UiPath.MobileAutomation.API.Models

Assembly: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

PressHardwareButton(HardwareButton, MobileOptions.HardwareButtonOptions)

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

button HardwareButton : le bouton sur lequel vous souhaitez appuyer. Les options suivantes sont disponibles :

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

options MobileOptions.PressHardwareButtonOptions (Facultatif) : spécifie le MobileOptions.PressHardwareButtonOptions pour l'action PressHardwareButton . La valeur par défaut est null.

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour