API reference

Application Class

The Application API provides ways to manage and interact with applications on the platform, including retrieving information about installed apps, for example: getting com.meta.horizon.platform.ovr.models.ApplicationVersion#getCurrentCode(), launching other apps and managing app downloads and updates.

Static Methods

cancelAppDownload ()
Cancel an app download that is in progress. It will return a result when the download is cancelled.
Signature
static Request<com.meta.horizon.platform.ovr.models.AppDownloadResult> com.meta.horizon.platform.ovr.requests.Application.cancelAppDownload()
checkAppDownloadProgress ()
Track download progress for an app.
Signature
static Request<com.meta.horizon.platform.ovr.models.AppDownloadProgressResult> com.meta.horizon.platform.ovr.requests.Application.checkAppDownloadProgress()
getVersion ()
installAppUpdateAndRelaunch ( deeplinkOptions )
Installs the app update that was previously downloaded. Once the install begins the application will exit automatically. After the installation process is complete, the app will be relaunched based on the options passed in.
Signature
static Request<com.meta.horizon.platform.ovr.models.AppDownloadResult> com.meta.horizon.platform.ovr.requests.Application.installAppUpdateAndRelaunch(ApplicationOptions deeplinkOptions)
launchOtherApp ( appID , deeplinkOptions )
Launches a different application in the user's library. If the user does not have that application installed, they will be taken to that app's page in the Oculus Store
Signature
static Request<String> com.meta.horizon.platform.ovr.requests.Application.launchOtherApp(long appID, ApplicationOptions deeplinkOptions)
Returns
Request< String >
startAppDownload ()
Starts an app download. It will return a result when the download is finished. Download progress can be monitored using the com.meta.horizon.platform.ovr.requests.Application#checkAppDownloadProgress().
Signature
static Request<com.meta.horizon.platform.ovr.models.AppDownloadResult> com.meta.horizon.platform.ovr.requests.Application.startAppDownload()