torchMode

Typeproperty
Dictionaryandroid.barcodescanner
LibraryAndroid Barcode Scanner
Syntax
get the torchMode of <widget>
set the torchMode of <widget> to "auto"
set the torchMode of <widget> to "on"
set the torchMode of <widget> to "off"
Associationscom.livecode.widget.native.android.barcodescanner
Summary

If the device's flash light should be turned on.

OSandroid
Description

Set the torchMode to specify when the device's flash light should be turned on. The flash light can be used to improve scanning results in low light conditions. If set to "off", the flash light will never turn on. If set to "on", the flash light will always be on. If set to "auto", the flash light will turn on when the ambient light levels are deemed too low.

Defaults to "off"