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, 2022 in Mobile Development by gaurav
• 23,260 points
447 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

Facebook iOS 9 SDK login redirects to mbasic.facebook.com on Safari

I'm using the iOS 9 Facebook SDK to manage ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,322 views
0 votes
0 answers

Opening Instagram app from a link on iOS

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

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,110 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, 2022 in Mobile Development by gaurav
• 23,260 points
1,401 views
0 votes
0 answers

iOS Custom Notification Sound (UNNotificationSound) doesn't play when iPhone is locked

My app uses remote notifications with a ...READ MORE

Nov 9, 2022 in Mobile Development by gaurav
• 23,260 points
1,001 views
0 votes
0 answers

Merge PDF files on iOS

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

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
617 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, 2022 in Mobile Development by gaurav
• 23,260 points
576 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, 2022 in IOS by Soham
• 9,710 points
465 views
0 votes
0 answers

iPhone system font

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

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

iPhone system font

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

answered Sep 20, 2022 in Others by Aditya
• 7,680 points
1,406 views
0 votes
1 answer

Getting country calling prefix

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

answered Sep 20, 2022 in Others by Aditya
• 7,680 points
826 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