Is there a way to adjust the torch/flash brightness level on an iOS device?

3 Solutions Collect From Internet About “Is there a way to adjust the torch/flash brightness level on an iOS device?”

In IOS 6+, you can.

[myAVCaptureDevice setTorchModeOnWithLevel:0.5 error:NULL]; <== range is (0,1.0] (don't send 0)

You can enumerate the av capture devices like so:

NSArray * devices = [AVCaptureDevice devices];

and determine which have torches (i.e. not microphones :):

myAVCaptureDevice.hasTorch

http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVCaptureDevice_Class/Reference/Reference.html

The torch itself is on/off but you can control “manually” when to turn it on and when off (you would need to use NSTimer for that).

Maybe you can do it fast enough so the light would look dimmed (I don’t really know if that would work practically).

You can start with iStrobe (open source) and check it out easily:
http://www.vellios.com/istrobe/

Yes, in ios6+ you can adjust the brightness level. There is a property to adjust level of brightness … the value range from 0.0 to 1.0