ApplesauceOS
Read Markdown ↗Download .md

KEY_TYPE

Named hardware button values.

js
KEY_TYPE

Arguments

No arguments.

Returns

Object: HOME_BUTTON=1, POWER_BUTTON=2, VOLUME_UP=3, VOLUME_DOWN=4, MUTE=5, SLEEP=6.

Example

js
keyDown(KEY_TYPE.VOLUME_UP);
keyUp(KEY_TYPE.VOLUME_UP);

Notes

A constant object, not a function. Availability depends on the device.

All JavaScript APIs · Automation playbook