Turn on flashlight (device.flash_on)
Declaration
ok = device.flash_on()
Returns
- ok
Boolean. true if device can open camera and has flashlight hardware; otherwise false
Notes
iPad Pro flashlight cannot be turned on
Turns on the device flashlight. When the script terminates, the flashlight turned on by the script will be turned off automatically
Example
device.flash_on()