Package | com.adobe.mediacore.utils |
Class | public class Version |
Inheritance | Version ![]() |
Property | Defined 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 |
apiVersion | property |
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!");
}
public static function get apiVersion():Number
build | property |
build:String
[read-only] public static function get build():String
fullVersion | property |
fullVersion:String
[read-only] public static function get fullVersion():String
major | property |
major:String
[read-only] public static function get major():String
minor | property |
minor:String
[read-only] public static function get minor():String
type | property |
type:String
[read-only] public static function get type():String
version | property |
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
public static function get version():String