This AIR Native Extension provides device basic information.
DeviceInfo.sharedInstance().imei;
Returns IMEI as string, not supported on iOS.
DeviceInfo.sharedInstance().general;
Provides access for DeviceInfoGeneral
object that describes device's general information:
DeviceGeneralInfo
{
public var name:String;
public var model:String;
public var vendor:String;
public var systemName:String;
public var systemVersion:String;
public var platform:String;
}
DeviceInfo.sharedInstance().general.ios;
Provide access to DeviceInfoGeneralIOS
object that describes iOS specific info:
DeviceInfoGeneralIOS
{
/** Returns iOS identifier for vendor */
public function getVendorIdentifier():String;
}
DeviceInfo.sharedInstance().general.android
Provide access to DeviceInfoGeneralAndroid
object that describes Android specific info:
DeviceInfoGeneralAndroid
{
/** Returns Android Identifier */
public function getAndroidIdentifier():String;
}
DeviceInfo.sharedInstance().battery;
Provides access to DeviceInfoBattery
object that describes Battery state:
DeviceInfoBattery
{
public var level:Number;
public var state:String;
public function get isMonitoring():Boolean;
public function startMonitoring():void;
public function stopMonitoring():void;
}