Packagecom.myflashlab.air.extensions.deviceInfo
Classpublic class DeviceInfo
InheritanceDeviceInfo Inheritance Object

Provides device and operating system information.



Public Methods
 MethodDefined By
  
androidInfo():Object
[static]
DeviceInfo
  
iosInfo():Object
[static]
DeviceInfo
  
isDeviceRooted():Boolean
[static] Checks if the device is rooted/jailbroken or not.
DeviceInfo
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.deviceInfo
[static]
DeviceInfo
  VERSION : String = 0.0.12
[static]
DeviceInfo
Method Detail
androidInfo()method
public static function androidInfo():Object

Returns
Object
iosInfo()method 
public static function iosInfo():Object

Returns
Object
isDeviceRooted()method 
public static function isDeviceRooted():Boolean

Checks if the device is rooted/jailbroken or not. Notice that you can never be 100% sure that the device is rooted or not. You can just make things hard for someone who is trying to bypass this check!

On iOS, we are using this approach: http://tiny.cc/b75tfz

On Android, we are using this approach: https://stackoverflow.com/a/8097801/247658

Returns
Boolean
Constant Detail
EXTENSION_IDConstant
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.deviceInfo

VERSIONConstant 
public static const VERSION:String = 0.0.12