Packagecom.adobe.mediacore.utils
Classpublic class Version
InheritanceVersion Inheritance Object

Utility class that exposes PSDK version information.



Public Properties
 PropertyDefined By
  apiVersion : Number
[static] [read-only] PSDK API versioning. Used to check against the API version the application has been compiled with. e.g.
Version
  build : String
[static] [read-only]
Version
  fullVersion : String
[static] [read-only]
Version
  major : String
[static] [read-only]
Version
  minor : String
[static] [read-only]
Version
  type : String
[static] [read-only]
Version
  version : String
[static] [read-only] The version string in the format of {major}.{minor}.{build} The version comparison rules are as follows, assuming there are v1 and v2: v1 > v2, if ((v1.major > v2.major) || (v1.major == v2.major && v1.minor > v2.minor) || (v1.major == v2.major && v1.minor == v2.minor && v1.build > v2.build)) v1 == v2, if (v1.major == v2.major && v1.minor == v2.minor && v1.build == v2.build) v1 < v2 //otherwise
Version
Property Detail
apiVersionproperty
apiVersion:Number  [read-only]

PSDK API versioning. Used to check against the API version the application has been compiled with. e.g. we have the application made for API version 2:

		 if (Version.apiVersion != 2)
		 {
		 	throw new Error("API version of PSDK not compliant with the application API version!");
		 }
		 


Implementation
    public static function get apiVersion():Number
buildproperty 
build:String  [read-only]


Implementation
    public static function get build():String
fullVersionproperty 
fullVersion:String  [read-only]


Implementation
    public static function get fullVersion():String
majorproperty 
major:String  [read-only]


Implementation
    public static function get major():String
minorproperty 
minor:String  [read-only]


Implementation
    public static function get minor():String
typeproperty 
type:String  [read-only]


Implementation
    public static function get type():String
versionproperty 
version:String  [read-only]

The version string in the format of {major}.{minor}.{build}

The version comparison rules are as follows, assuming there are v1 and v2:

         v1 > v2, if ((v1.major > v2.major) || 
                      (v1.major == v2.major && v1.minor > v2.minor) ||
                         (v1.major == v2.major && v1.minor == v2.minor && v1.build > v2.build))
         
         v1 == v2, if (v1.major == v2.major && 
                      v1.minor == v2.minor &&
                         v1.build == v2.build) 
         
         v1 < v2 //otherwise
         


Implementation
    public static function get version():String