iOS Torch level on iPhone 11 Pro

0 votes

I'm using AVCaptureDevice.setTorchModeOn(level) method to turn on the flashlight at variable brightness.

On my old iPhone SE it's working fine — I can clearly see 4 different brightness levels as I change level from 0 to 1.

But on the iPhone 11 Pro the flashlight turns on only when level is 1.0! And it's brightness if far from maximum level (compared to flashlight from Control Center).

I tried using maxAvailableTorchLevel constant, but results are the same as using 1.0.
Also tried values more than 1.0 — this results in exception (as expected).

Did anyone have this problem too? Maybe there are some workarounds?


 

Nov 17 in Mobile Development by gaurav
• 22,040 points
24 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Mobile Development

0 votes
0 answers

Opening Instagram app from a link on iOS

I am providing a feed which is ...READ MORE

Nov 8 in Mobile Development by gaurav
• 22,040 points
51 views
0 votes
0 answers

Can't play video on iOS in Safari: NotAllowedError

When I click a play button on ...READ MORE

Nov 8 in Mobile Development by gaurav
• 22,040 points
85 views
0 votes
0 answers
0 votes
0 answers

Merge PDF files on iOS

Is there a way in iOS to ...READ MORE

Nov 10 in Mobile Development by gaurav
• 22,040 points
26 views
0 votes
0 answers

How to open app from Twitter for iOS WebView on iOS 9

My question pertains to deeplinking from a ...READ MORE

Nov 10 in Mobile Development by gaurav
• 22,040 points
44 views
0 votes
0 answers

What is the new URL schema for Here WeGo v4 on iOS/Android?

The URL schema for Here WeGo on ...READ MORE

Nov 10 in Mobile Development by gaurav
• 22,040 points
27 views
0 votes
0 answers

iOS: Torch level on iPhone 11 Pro

I'm using the AVCaptureDevice.setTorchModeOn(level) method to turn ...READ MORE

Sep 27 in IOS by Soham
• 9,670 points
53 views
0 votes
0 answers

iPhone system font

What is the name of the default ...READ MORE

May 16 in Others by Kichu
• 19,040 points
56 views
0 votes
1 answer

iPhone system font

The iPhone system interface uses Helvetica or ...READ MORE

answered Sep 20 in Others by Aditya
• 7,660 points
96 views
0 votes
1 answer

Getting country calling prefix

For a class that offers both this ...READ MORE

answered Sep 20 in Others by Aditya
• 7,660 points
77 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP