API reference

AssetFileDownloadCancelResult Class

An AssetFileDownloadCancelResult represents the result of a canceled download action of an asset file. You can cancel a download of an asset file by using com.meta.horizon.platform.ovr.requests.AssetFile#downloadCancelById(long assetFileID) or com.meta.horizon.platform.ovr.requests.AssetFile#downloadCancelByName(String assetFileName). The result contains three fields which are the asset file ID(use com.meta.horizon.platform.ovr.models.AssetFileDownloadCancelResult#getAssetId() to access), the file path, and success status of the canceled download.

Member Functions

AssetFileDownloadCancelResult
( final long ptr )
long getAssetFileId ( )
Returns
long
Deprecated
You can use com.meta.horizon.platform.ovr.models.AssetFileDownloadCancelResult#getAssetId() to retrieve the ID of the asset file instead.
long getAssetId ( )
ID of the asset file. NOTE: this does not represent the ID of the asset.
Returns
long
String getFilepath ( )
File path of the asset file.
Returns
String
boolean getSuccess ( )
You can use this to determine whether the cancel request of downloading an asset file has succeeded.
Returns
boolean