API reference

AssetFile Class

The Asset File API provides methods for managing asset files in a virtual environment. The methods include getting details and status com.meta.horizon.platform.ovr.models.AssetDetails#getDownloadStatus(), downloading by ID or name, canceling downloads, and deleting files by ID or name.

Static Member Functions

Parameters
assetFileID
- The uuid of the asset file.
Deprecated
static Request< com.meta.horizon.platform.ovr.models.AssetFileDeleteResult > deleteById
( long assetFileID )
Removes a previously installed asset file from the device by its ID. Returns an object containing the asset ID and file name, and a success flag.
Parameters
assetFileID
- The asset file ID
static Request< com.meta.horizon.platform.ovr.models.AssetFileDeleteResult > deleteByName
( String assetFileName )
Removes a previously installed asset file from the device by its name. Returns an object containing the asset ID and file name, and a success flag.
Parameters
assetFileName
- The asset file name
Parameters
assetFileID
- The uuid of the file.
Deprecated
static Request< com.meta.horizon.platform.ovr.models.AssetFileDownloadResult > downloadById
( long assetFileID )
Downloads an asset file by its ID on demand. Returns an object containing the asset ID and filepath. Sends periodic com.meta.horizon.platform.ovr.Message.MessageType#Notification_AssetFile_DownloadUpdate to track the downloads.
Parameters
assetFileID
- The asset file ID
static Request< com.meta.horizon.platform.ovr.models.AssetFileDownloadResult > downloadByName
( String assetFileName )
Downloads an asset file by its name on demand. Returns an object containing the asset ID and filepath. Sends periodic {notifications.asset_file.download_update}} to track the downloads.
Parameters
assetFileName
- The asset file name
Parameters
assetFileID
- The uuid of the asset file.
Deprecated
static Request< com.meta.horizon.platform.ovr.models.AssetFileDownloadCancelResult > downloadCancelById
( long assetFileID )
Cancels a previously spawned download request for an asset file by its ID. Returns an object containing the asset ID and file path, and a success flag.
Parameters
assetFileID
- The asset file ID
static Request< com.meta.horizon.platform.ovr.models.AssetFileDownloadCancelResult > downloadCancelByName
( String assetFileName )
Cancels a previously spawned download request for an asset file by its name. Returns an object containing the asset ID and file path, and a success flag.
Parameters
assetFileName
- The asset file name
Returns an array of asset details with asset file names and their associated IDs com.meta.horizon.platform.ovr.models.AssetDetails#getAssetId(), and whether it's currently installed com.meta.horizon.platform.ovr.models.AssetDetails#getDownloadStatus().
static Request< com.meta.horizon.platform.ovr.models.AssetDetails > status
( long assetFileID )
Parameters
assetFileID
- The uuid of the asset file.
Deprecated
static Request< com.meta.horizon.platform.ovr.models.AssetDetails > statusById
( long assetFileID )
Returns the details com.meta.horizon.platform.ovr.models.AssetDetails on a single asset: ID, file name, and whether it's currently installed
Parameters
assetFileID
- The asset file ID
static Request< com.meta.horizon.platform.ovr.models.AssetDetails > statusByName
( String assetFileName )
Returns the details com.meta.horizon.platform.ovr.models.AssetDetails on a single asset: ID, file name, and whether it's currently installed
Parameters
assetFileName
- The asset file name
static void setDownloadUpdateNotificationCallbacks
Request.Handler< Error > onError )
Sent to indicate download progress for asset files.