Package | com.myflashlab.air.extensions.deviceInfo |
Class | public class DeviceInfo |
Inheritance | DeviceInfo Object |
Method | Defined By | ||
---|---|---|---|
androidInfo():Object [static] | DeviceInfo | ||
iosInfo():Object [static] | DeviceInfo | ||
isDeviceRooted():Boolean [static]
Checks if the device is rooted/jailbroken or not. | DeviceInfo |
Constant | Defined By | ||
---|---|---|---|
EXTENSION_ID : String = com.myflashlab.air.extensions.deviceInfo [static] | DeviceInfo | ||
VERSION : String = 0.0.12 [static] | DeviceInfo |
androidInfo | () | method |
public static function androidInfo():Object
ReturnsObject |
iosInfo | () | method |
public static function iosInfo():Object
ReturnsObject |
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
ReturnsBoolean — |
EXTENSION_ID | Constant |
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.deviceInfo
VERSION | Constant |
public static const VERSION:String = 0.0.12