Provide the ability to programmatically set the backlight level

Originator:neilc
Number:rdar://7250215 Date Originated:24-Sep-2009 03:39 PM
Status:Duplicate/5846297 Resolved:
Product:iPhone SDK Product Version:3.1
Classification:Enhancement Reproducible:Not applicable
 
SUMMARY

While iPhone SDK does provide a way for an application to prevent the screen from locking, by disabling the idle timer, the SDK lacks the ability for the application developer to programmatically set the backlight level. However, the iPod application included with iPhone OS demonstrates this is achievable. Please make the GSEventSetBacklightFactor and GSEventSetBacklightLevel methods public or introduce a new API that replicates their functionality. 

STEPS TO REPRODUCE
1. Create an application that disables idle timer.
2. Attempt to programmatically raise or lower the backlight level.

EXPECTED RESULTS

The developer is able to call a single method that accepts an int or float parameter to set the backlight level. 

ACTUAL RESULTS

There is no public API that can be called.

REGRESSION

None.

NOTES

Comments

Closed

Apple have closed this as a duplicate of 5846297.

+1

This will help create battery savvy apps.

By nissan.tsafrir at Jan. 4, 2010, 11:06 a.m. (reply...)

+1

exposing the backlight level to developers would be a great addition to the sdk.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!