setTorchEnabled

fun setTorchEnabled(enabled: Boolean)

Turns the torch of the active camera on or off.

Call it before start or while running. It does nothing on a camera without a flash unit. The scanner keeps the last requested state and applies it each time the camera binds, so after stop and start the torch is requested on again if you last requested on.

Since

0.5.0

Parameters

enabled

true to turn the torch on.