Packagemx.utils
Classpublic class Platform
InheritancePlatform Inheritance Object

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.



Public Properties
 PropertyDefined By
  isAir : Boolean
[static] [read-only] Returns true if the application is running on a desktop AIR.
Platform
  isAndroid : Boolean
[static] [read-only] Returns true if the application is running on Android.
Platform
  isBlackBerry : Boolean
[static] [read-only] Returns true if the application is running on a BlackBerry.
Platform
  isBrowser : Boolean
[static] [read-only] Returns true if the application is running in a browser.
Platform
  isDesktop : Boolean
[static] [read-only] Returns true if the application is running on a Desktop OS.
Platform
  isIOS : Boolean
[static] [read-only] Returns true if the application is running on IOS.
Platform
  isIPad : Boolean
[static] [read-only] Returns true if the application is running on an iPad.
Platform
  isLinux : Boolean
[static] [read-only] Returns true if the application is running on Linux.
Platform
  isMac : Boolean
[static] [read-only] Returns true if the application is running on a Mac.
Platform
  isMobile : Boolean
[static] [read-only] Returns true if the application is running on a Mobile device.
Platform
  isWindows : Boolean
[static] [read-only] Returns true if the application is running on Windows.
Platform
  osVersion : String
[static] [read-only] Returns the version of the OS the application is running on
Platform
Protected Properties
 PropertyDefined By
  _initialized : Boolean
[static]
Platform
  _isAir : Boolean
[static]
Platform
  _isAndroid : Boolean
[static]
Platform
  _isBlackBerry : Boolean
[static]
Platform
  _isBrowser : Boolean
[static]
Platform
  _isDesktop : Boolean
[static]
Platform
  _isIOS : Boolean
[static]
Platform
  _isIPad : Boolean
[static]
Platform
  _isLinux : Boolean
[static]
Platform
  _isMac : Boolean
[static]
Platform
  _isMobile : Boolean
[static]
Platform
  _isWindows : Boolean
[static]
Platform
Protected Methods
 MethodDefined By
  
[static]
Platform
Property Detail
_initializedproperty
protected static var _initialized:Boolean

_isAirproperty 
protected static var _isAir:Boolean

_isAndroidproperty 
protected static var _isAndroid:Boolean

_isBlackBerryproperty 
protected static var _isBlackBerry:Boolean

_isBrowserproperty 
protected static var _isBrowser:Boolean

_isDesktopproperty 
protected static var _isDesktop:Boolean

_isIOSproperty 
protected static var _isIOS:Boolean

_isIPadproperty 
protected static var _isIPad:Boolean

_isLinuxproperty 
protected static var _isLinux:Boolean

_isMacproperty 
protected static var _isMac:Boolean

_isMobileproperty 
protected static var _isMobile:Boolean

_isWindowsproperty 
protected static var _isWindows:Boolean

isAirproperty 
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
isAndroidproperty 
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
isBlackBerryproperty 
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
isBrowserproperty 
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
isDesktopproperty 
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
isIOSproperty 
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
isIPadproperty 
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
isLinuxproperty 
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
isMacproperty 
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
isMobileproperty 
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
isWindowsproperty 
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
osVersionproperty 
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
Method Detail
getPlatforms()method
protected static function getPlatforms():void