Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
CSSOSVersion

Package | mx.styles
Class | public class CSSOSVersion
Inheritance | CSSOSVersion Object

Support class for MediaQueryParser to store and compare versions such as X.Y.Z Its mainly used in os-version media selector.

Public Properties

| Property | Defined By
--- | --- | ---
|  | major : int = 0 major figure of the version. | CSSOSVersion
|  | minor : int = 0 minor figure of the version. | CSSOSVersion
|  | revision : int = 0 revision figure of the version. | CSSOSVersion

Public Methods

| Method | Defined By
--- | --- | ---
|  | CSSOSVersion(versionString:String) Contructor Returns an CSSOSVersion for versionString. | CSSOSVersion
|  | compareTo(otherVersion:CSSOSVersion):int Compares to another CSSOSVersion instance | CSSOSVersion
|  | toString():String Printable string of the version, as X.Y.Z | CSSOSVersion

Property Detail

major | property

`public var major:int = 0`

major figure of the version.

minor | property |

`public var minor:int = 0`

minor figure of the version.

revision | property |

`public var revision:int = 0`

revision figure of the version.

Constructor Detail

CSSOSVersion | () | Constructor

`public function CSSOSVersion(versionString:String)`

Contructor Returns an CSSOSVersion for versionString.

Parameters

| `versionString:String`

Method Detail

compareTo | () | method

`public function compareTo(otherVersion:CSSOSVersion):int`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.13

Compares to another CSSOSVersion instance

Parameters

| `otherVersion:CSSOSVersion` — another CSSOSVersion.

Returns

| `int` — 0 if both versions are equal -1 if `this` is lower than `otherVersion`. 1 if `this` is greater than `otherVersion`.

toString | () | method |

`public function toString():String`

Printable string of the version, as X.Y.Z

Returns

| `String` — version as a string

Sun Mar 5 2017, 03:42 PM +11:00