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

AssetFile Class

Static Methods

Delete ( assetFileID )
DEPRECATED. Use AssetFile.DeleteById()
Signature
static Request<Models.AssetFileDeleteResult> Oculus.Platform.AssetFile.Delete(UInt64 assetFileID)
Parameters
assetFileID: UInt64
DeleteById ( assetFileID )
Removes an previously installed asset file from the device by its ID. Returns an object containing the asset ID and file name, and a success flag.
Signature
static Request<Models.AssetFileDeleteResult> Oculus.Platform.AssetFile.DeleteById(UInt64 assetFileID)
Parameters
assetFileID: UInt64  The asset file ID
DeleteByName ( assetFileName )
Removes an previously installed asset file from the device by its name. Returns an object containing the asset ID and file name, and a success flag.
Signature
static Request<Models.AssetFileDeleteResult> Oculus.Platform.AssetFile.DeleteByName(string assetFileName)
Parameters
assetFileName: string  The asset file name
Download ( assetFileID )
DEPRECATED. Use AssetFile.DownloadById()
Signature
static Request<Models.AssetFileDownloadResult> Oculus.Platform.AssetFile.Download(UInt64 assetFileID)
Parameters
assetFileID: UInt64
DownloadById ( assetFileID )
Downloads an asset file by its ID on demand. Returns an object containing the asset ID and filepath. Sends periodic MessageType.Notification_AssetFile_DownloadUpdate to track the downloads.
Signature
static Request<Models.AssetFileDownloadResult> Oculus.Platform.AssetFile.DownloadById(UInt64 assetFileID)
Parameters
assetFileID: UInt64  The asset file ID
DownloadByName ( 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.
Signature
static Request<Models.AssetFileDownloadResult> Oculus.Platform.AssetFile.DownloadByName(string assetFileName)
Parameters
assetFileName: string  The asset file name
DownloadCancel ( assetFileID )
DEPRECATED. Use AssetFile.DownloadCancelById()
Signature
static Request<Models.AssetFileDownloadCancelResult> Oculus.Platform.AssetFile.DownloadCancel(UInt64 assetFileID)
Parameters
assetFileID: UInt64
DownloadCancelById ( 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.
Signature
static Request<Models.AssetFileDownloadCancelResult> Oculus.Platform.AssetFile.DownloadCancelById(UInt64 assetFileID)
Parameters
assetFileID: UInt64  The asset file ID
DownloadCancelByName ( 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.
Signature
static Request<Models.AssetFileDownloadCancelResult> Oculus.Platform.AssetFile.DownloadCancelByName(string assetFileName)
Parameters
assetFileName: string  The asset file name
GetList ()
Returns an array of objects with asset file names and their associated IDs, and and whether it's currently installed.
Signature
static Request<Models.AssetDetailsList> Oculus.Platform.AssetFile.GetList()
SetDownloadUpdateNotificationCallback ( callback )
Sent to indicate download progress for asset files.
Signature
static void Oculus.Platform.AssetFile.SetDownloadUpdateNotificationCallback(Message< Models.AssetFileDownloadUpdate >.Callback callback)
Parameters
Returns
void
Status ( assetFileID )
DEPRECATED. Use AssetFile.StatusById()
Signature
static Request<Models.AssetDetails> Oculus.Platform.AssetFile.Status(UInt64 assetFileID)
Parameters
assetFileID: UInt64
StatusById ( assetFileID )
Returns the details on a single asset: ID, file name, and whether it's currently installed
Signature
static Request<Models.AssetDetails> Oculus.Platform.AssetFile.StatusById(UInt64 assetFileID)
Parameters
assetFileID: UInt64  The asset file ID
StatusByName ( assetFileName )
Returns the details on a single asset: ID, file name, and whether it's currently installed
Signature
static Request<Models.AssetDetails> Oculus.Platform.AssetFile.StatusByName(string assetFileName)
Parameters
assetFileName: string  The asset file name