Skip to main content

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

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()