IOSSystemUtils is a native extension to control brightness, torch and badge on iOS. The extension allows an application to set the brightness of screen, enable or disable the iPhone Torch and set app bagde count.

The extension works on the simulator too, but it’s only able to set the brightness of the screen.


var iosutils:IOSSystemUtils = new IOSSystemUtils( );
iosutils.setBrightnes( brightnes /* From 0 to 1 */);
iosutils.setTorchEnabled( true/false );
iosutils.setBadgeNumber( count /*uint badge count*/ );
Air Native Extension, iOS . URL.