Collection of AIR 3.0 Native Extensions for Android and iOS
Collection of AIR 3.0 Native Extensions for Android and iOS
These libraries provides different AIR 3 Native Extension adapters for the Android platform. powered by Powerflasher GmbH
Use cases:
Sensors
OS Features
Dependencies
Download
Download the prefered Extension from the Extension_Android _*_Interface directory of the extension. I've also added the source files from native code in case you want to change the implementation for yourself.
Installation
API Usage
After adding the.swc file to your project path you've access to the containing classes. The implementation of the different services is straight forwarded and orients oneself by the Adobe AIR API of the Geolocation and Accelerometer class.
In case you want to check whether a service is available or not you should use the static method isSupported() before initializing the instance.
E.g.
if (Vibrator.isSupported())
{
var vibrator : Vibrator = new Vibrator();
vibrator.vibrate(200);
}
if (Proximity.isSupported())
{
proximity = new Proximity();
proximity.setRequestedUpdateInterval(1000);
proximity.addEventListener(ProximityEvent.UPDATE, handleProximityUpdate);
}You can dispose all Services via:
proximity.dispose();More information in the wiki.
Packaging
Make sure you've added the .ane files during the packaging process of your .apk file.
E.g. via ANT
v 1.0
v 0.9
v 0.8
v 0.7
v 0.6
v 0.5
v 0.4
v 0.3
v 0.2
v 0.1
Add additional Documentation of each service
Add Unit Tests
Add equivalent iOS implementations
No open issues yet, or sync has not completed.