Adobe Air IOS Native Extension to control Brightness / Torch / Badge
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
NATIVE
src/es/xperiments/ane/iossystemutils
.gitignore
.project
LICENSE.md
README.md

README.md

IOSSystemUtils

IOSSystemUtils a little IOS ANE extension that lets you:

  • Set the brightness of screen
  • Enable / Disable iPhone Torch
  • Set app Bagde count

Usage

Include the IOSSystemUtils.ane to your project. Current ane targets to device / simulator but simulator only reacts to setBadgeNumber method.

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