Skip to main content
Presses a physical device button. The simplified form takes the button name as a single string.

Parameters

Button values: home, power, back, app_switcher, search, volume_up, volume_down, volume_mute. back, app_switcher, search, and the volume buttons are Android-only.

Shorthand

Button name as a single string.

Examples