enableTorchWithStrength

abstract suspend fun enableTorchWithStrength(strength: Double)

Turns the torch on at the given strength, between CameraDevice.minTorchStrength and CameraDevice.maxTorchStrength. Turn it off again with setTorchMode.

Throws

If the device does not support CameraDevice.supportsTorchStrength, or the strength is out of range.