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

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
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
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
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
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
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
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().
Parameters
assetFileID
- The uuid of the asset file.
Deprecated
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
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
Sent to indicate download progress for asset files.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon