Skip to main content

Turn on flashlight (device.flash_on)

Declaration

ok = device.flash_on()

Returns

  • ok
    Boolean. true when the device has flashlight hardware and the camera is accessible; false otherwise.

Description

iPad Pro flashlight cannot be turned on
Turns on the device flashlight. The flashlight is automatically turned off when the script terminates.

Example

device.flash_on()