Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way of adjusting the screen brightness programmatically?

Tags:

ios

iphone

I have an iPhone app for photographic purposes (kind of a lightbox). This app needs as much brightness as possible. Is there a way to change the screen brightness programmatically, and then restore it back some time later?

like image 940
openfrog Avatar asked Sep 23 '10 14:09

openfrog


People also ask

How do I adjust my screen brightness automatically?

Some PCs can let Windows automatically adjust screen brightness based on the current lighting conditions. To find out if your PC supports this, select Settings > System > Display. Select Brightness, look for the Change brightness automatically when lighting changes check box, and then select it to use this feature.

How can I make my brightness lower than normal?

Method 2: Quick settings Pull down the notification tray at the top of the screen to reveal the quick settings menu. Tap the Night Light icon to turn it on. Turn Night Light on to dim your phone screen.

Which function key adjusts brightness?

Fn + / (F5/F6) Press the button repeatedly to adjust the LCD brightness of your computer screen.


1 Answers

Edit: iOS 5 now includes a screen brightness API.

[[UIScreen mainScreen] setBrightness:0.5]; 

Previous answer:

No, this capability is not exposed via public APIS.

Edit: Note that a future possible iOS release may or may not have screen brightness on the multitasking bar on one particular iDevice.

like image 195
Alastair Stuart Avatar answered Oct 01 '22 14:10

Alastair Stuart