Meta XR Platform SDK (UPM) v71 Reference Guide
Meta XR Platform SDK (UPM) v71 Reference Guide
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 AssetDetails::DownloadStatus, 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 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 AssetDetails::AssetId, and whether it's currently installed AssetDetails::DownloadStatus.
Parameters
assetFileID
The uuid of the asset file.
Deprecated
Returns the details Models.AssetDetails on a single asset: ID, file name, and whether it's currently installed
Parameters
assetFileID
The asset file ID
Returns the details 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