Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
The Platform utility class contains several static methods to check what
desktop or mobile platform the application is running on.
protected static var _initialized:Boolean
protected static var _isAir:Boolean
protected static var _isAndroid:Boolean
protected static var _isBlackBerry:Boolean
protected static var _isBrowser:Boolean
protected static var _isDesktop:Boolean
protected static var _isIOS:Boolean
protected static var _isIPad:Boolean
protected static var _isLinux:Boolean
protected static var _isMac:Boolean
protected static var _isMobile:Boolean
protected static var _isWindows:Boolean
isAir:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on a desktop AIR.
Implementation public static function get isAir():Boolean
isAndroid:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on Android.
Implementation public static function get isAndroid():Boolean
isBlackBerry:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on a BlackBerry.
Implementation public static function get isBlackBerry():Boolean
isBrowser:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running in a browser.
Implementation public static function get isBrowser():Boolean
isDesktop:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on a Desktop OS.
Implementation public static function get isDesktop():Boolean
isIOS:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on IOS.
Implementation public static function get isIOS():Boolean
isIPad:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on an iPad.
Note this returns false in the AIR mobile device simulator.
Implementation public static function get isIPad():Boolean
isLinux:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on Linux.
Implementation public static function get isLinux():Boolean
isMac:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on a Mac.
Implementation public static function get isMac():Boolean
isMobile:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on a Mobile device.
Implementation public static function get isMobile():Boolean
isWindows:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the application is running on Windows.
Implementation public static function get isWindows():Boolean
osVersion:String
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.13 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns the version of the OS the application is running on
Implementation public static function get osVersion():String
protected static function getPlatforms():void
Wed Mar 25 2015, 07:57 PM +01:00