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.

Constructors

AssetFileDownloadCancelResult ( ptr )
Signature
com.meta.horizon.platform.ovr.models.AssetFileDownloadCancelResult.AssetFileDownloadCancelResult(final long ptr)
Parameters
ptr: final long

Methods

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