API reference

AssetFileDownloadUpdate Class

An AssetFileDownloadUpdate represents the download status of an update for an asset file. It contains the asset file ID, the download progress of the update, and its completion status. It can be retrieved using com.meta.horizon.platform.ovr.Message.MessageType#Notification_AssetFile_DownloadUpdate.

Member Functions

AssetFileDownloadUpdate
( final long ptr )
long getAssetFileId ( )
Returns
long
Deprecated
long getAssetId ( )
ID of the asset file. It can be retrieved using com.meta.horizon.platform.ovr.models.AssetDetails#getAssetId().
Returns
long
long getBytesTotal ( )
This field is of type uint and represents the total number of bytes in the asset file.
Returns
long
long getBytesTransferred ( )
An integer represents the number of bytes that have been downloaded. -1 If the download hasn't started yet.
Returns
int
boolean getCompleted ( )
This field is of type boolean and indicates whether the download has been completed or not.
Returns
boolean