| 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:Booleanprotected static var _isAir:Booleanprotected static var _isAndroid:Booleanprotected static var _isBlackBerry:Booleanprotected static var _isBrowser:Booleanprotected static var _isDesktop:Booleanprotected static var _isIOS:Booleanprotected static var _isIPad:Booleanprotected static var _isLinux:Booleanprotected static var _isMac:Booleanprotected static var _isMobile:Booleanprotected static var _isWindows:BooleanisAir: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():BooleanisAndroid: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():BooleanisBlackBerry: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():BooleanisBrowser: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():BooleanisDesktop: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():BooleanisIOS: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():BooleanisIPad: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():BooleanisLinux: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():BooleanisMac: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():BooleanisMobile: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():BooleanisWindows: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():BooleanosVersion: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 Nov 15 2017, 09:50 AM +01:00