Sets playback destination to a device. Device The device to set playback destination to.
Sets the system volume. If you set the volume using a variable, use a number between 0 and 1 (for example, pass 0.5 for half volume).
Changes system appearance (between Light/Dark).
Plays the audio file passed as input, or a default notification sound if no audio file was passed.
Sets the device’s Bluetooth to on or off.
Outputs the percentage of battery remaining as a number from 0 to 100.
Turns Do Not Disturb on or off.
Sets the device’s Low Power Mode to on or off.
Turns on or off the flashlight near the device's camera.
Sets the device brightness.
Get more powerful ways to browse – sign up for a membership.