API reference

horizon.platform.assetfile.models

Updated: Oct 30, 2025

Package-level declarations

Types

NameSummary
interface AssetDetails
An AssetDetails object contains detailed metadata for an asset file, including the asset file ID, file path, asset type, and additional metadata that characterizes the asset. You can retrieve the asset details using horizon.platform.assetfile.AssetFile.getList
interface AssetFileDeleteResult
An AssetFileDeleteResult contains the result of a deleted asset file. You can delete an asset file by using horizon.platform.assetfile.AssetFile.deleteById or horizon.platform.assetfile.AssetFile.deleteByName. The delete result contains the horizon.platform.assetfile.models.AssetFileDeleteResult.assetId, the file path, and the success status of the deleted asset.
interface AssetFileDownloadCancelResult
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 horizon.platform.assetfile.AssetFile.downloadCancelById or horizon.platform.assetfile.AssetFile.downloadCancelByName. The result contains three fields which are the asset file ID(use horizon.platform.assetfile.models.AssetFileDownloadCancelResult.assetId to access), the file path, and success status of the canceled download.
interface AssetFileDownloadResult
An AssetFileDownloadResult represents an asset that has been successfully downloaded. It’s used to store information about an asset that has been downloaded, such as its location on the local file system and its unique identifier asset file ID. It can be retrieved using horizon.platform.assetfile.AssetFile.downloadByName.
interface AssetFileDownloadUpdate
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 horizon.platform.assetfile.AssetFile.downloadUpdate. horizon.platform.assetfile.models.AssetFileDownloadUpdate.completed is true means downloaded but probably not installed yet. Call horizon.platform.assetfile.AssetFile.statusById until horizon.platform.assetfile.models.AssetDetails.downloadStatus changes from ‘available’ to ‘installed’.
interface LanguagePackInfo
It contains information about a specific language, including its identification tag, and names in both English and the native language. It is useful for applications supporting multiple languages. It can be retrieved using horizon.platform.assetfile.models.AssetDetails.language. Learn more about language pack in our website