setTorchEnabled
abstract fun setTorchEnabled(enable: Boolean, torchChangedResultListener: (isSuccessful: Boolean) -> Unit? = null)
Requests the frame producer to change the torch state.
Parameters
enable
The desired state of the torch. True for on, False for off.
torchChangedResultListener
An optional listener to receive the result of the torch change.