API reference
API reference
Select your platform
No SDKs available
No versions available

ApplicationVersion Class

Represents the version information for an application. The information includes the date of latest release, the size of the latest release and the application name and version code of currently installed version and the latest release. You can retrieve it with com.meta.horizon.platform.ovr.requests.Application#getVersion().

Constructors

ApplicationVersion ( ptr )
Signature
com.meta.horizon.platform.ovr.models.ApplicationVersion.ApplicationVersion(final long ptr)
Parameters
ptr: final long

Methods

getCurrentCode ()
The version code number for the version of the application that is currently installed on the device.
Signature
int com.meta.horizon.platform.ovr.models.ApplicationVersion.getCurrentCode()
Returns
int  int
getCurrentName ()
The version name string for the version of the application that is currently installed on the device.
Signature
String com.meta.horizon.platform.ovr.models.ApplicationVersion.getCurrentName()
Returns
String  String
getLatestCode ()
Version code number of the latest update of the application. This may or may not be currently installed on the device.
Signature
int com.meta.horizon.platform.ovr.models.ApplicationVersion.getLatestCode()
Returns
int  int
getLatestName ()
Version name string of the latest update of the application. This may or may not be currently installed on the device.
Signature
String com.meta.horizon.platform.ovr.models.ApplicationVersion.getLatestName()
Returns
String  String
getReleaseDate ()
Seconds since epoch when the latest application update was released. You need to convert this date to a human readable format before displaying it to the application users.
Signature
long com.meta.horizon.platform.ovr.models.ApplicationVersion.getReleaseDate()
Returns
long  long
getSize ()
Size of the latest application update in bytes.
Signature
String com.meta.horizon.platform.ovr.models.ApplicationVersion.getSize()
Returns
String  String