Skip to content

airext/deviceinfo

Repository files navigation

deviceinfo License MIT

iOS Android

This AIR Native Extension provides device basic information.

imei

DeviceInfo.sharedInstance().imei;

Returns IMEI as string, not supported on iOS.

General Info

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;
}
iOS General Info
DeviceInfo.sharedInstance().general.ios;

Provide access to DeviceInfoGeneralIOS object that describes iOS specific info:

DeviceInfoGeneralIOS
{
  /** Returns iOS identifier for vendor */
  public function getVendorIdentifier():String;
}
Android General Info
DeviceInfo.sharedInstance().general.android

Provide access to DeviceInfoGeneralAndroid object that describes Android specific info:

DeviceInfoGeneralAndroid
{
  /** Returns Android Identifier */
  public function getAndroidIdentifier():String;
}

Battery Info

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;
}