Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
SBBrightnessController - iPhone Development Wiki

SBBrightnessController

From iPhone Development Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

SBBrightnessController is a singleton class that is used to manipulate the brightness level of the screen. You can access the singleton instance with the nonstandard method as follows:

+ (id)sharedBrightnessController

Brightness Level Manipulation

The following method can be used to manipulate the brightness level, where allowed values are in the range from 0.0 to 1.0. An optional HUD can also be displayed.

-(void)_setBrightnessLevel:(float)level showHUD:(BOOL)hud;

References