setTorchState

@UiThread
abstract fun setTorchState(on: Boolean, @NonNull successCallback: SuccessCallback)

Enable/disable torch on camera.

Parameters

on

if true, torch will be enabled, if false, torch will be disabled

successCallback

Success callback that will be notified whether the operation was successful