Open Search
    AssetDownloadsInterface Class Reference

    #include <asset_downloads.h>

    Detailed Description

    Helper Interface for Asset downloads functions.

    Static Public Member Functions

    static MAXON_METHOD Bool IsAssetCached (const AssetDescription &ad)
     
    static MAXON_METHOD Result< Int64GetAssetFileSize (const AssetDescription &ad)
     
    static MAXON_METHOD Result< DOWNLOADSTATEGetDownloadState (const AssetDescription &ad, const HashSet< AssetDescription > &toDownloadTemp)
     
    static MAXON_METHOD Result< void > AddAssetWithDependencies (const AssetDescription &ad, const AssetRepositoryRef &searchRepository, BaseArray< AssetDescription > &assetsToExport, HashSet< IdAndVersion > &assetsProcessed)
     
    static MAXON_METHOD Result< void > DownloadAsset (const BaseArray< AssetDescription > &assetsToDownload, const AssetRepositoryRef &searchRepository)
     
    static MAXON_METHOD Result< Tuple< ProgressRef, Int > > DownloadAsset (const AssetDescription &asset, const AssetRepositoryRef &searchRepository)
     
    static MAXON_METHOD Result< Tuple< ProgressRef, Int > > DownloadMultipleAssets (const BaseArray< AssetDescription > &assetsToDownload, const AssetRepositoryRef &searchRepository)
     
    static MAXON_METHOD void DownloadManagerCancelAll ()
     
    static MAXON_METHOD Bool DownloadManagerIsDownloading ()
     
    static MAXON_METHOD void FreeAssetDownloads ()
     

    Private Member Functions

     MAXON_INTERFACE_NONVIRTUAL (AssetDownloadsInterface, MAXON_REFERENCE_STATIC, "net.maxon.asset.downloadsinterface")
     

    Member Function Documentation

    ◆ MAXON_INTERFACE_NONVIRTUAL()

    MAXON_INTERFACE_NONVIRTUAL ( AssetDownloadsInterface  ,
    MAXON_REFERENCE_STATIC  ,
    "net.maxon.asset.downloadsinterface"   
    )
    private

    ◆ IsAssetCached()

    static MAXON_METHOD Bool IsAssetCached ( const AssetDescription &  ad)
    static

    ◆ GetAssetFileSize()

    static MAXON_METHOD Result<Int64> GetAssetFileSize ( const AssetDescription &  ad)
    static

    ◆ GetDownloadState()

    static MAXON_METHOD Result<DOWNLOADSTATE> GetDownloadState ( const AssetDescription &  ad,
    const HashSet< AssetDescription > &  toDownloadTemp 
    )
    static

    ◆ AddAssetWithDependencies()

    static MAXON_METHOD Result<void> AddAssetWithDependencies ( const AssetDescription &  ad,
    const AssetRepositoryRef &  searchRepository,
    BaseArray< AssetDescription > &  assetsToExport,
    HashSet< IdAndVersion > &  assetsProcessed 
    )
    static

    ◆ DownloadAsset() [1/2]

    static MAXON_METHOD Result<void> DownloadAsset ( const BaseArray< AssetDescription > &  assetsToDownload,
    const AssetRepositoryRef &  searchRepository 
    )
    static

    ◆ DownloadAsset() [2/2]

    static MAXON_METHOD Result<Tuple<ProgressRef, Int> > DownloadAsset ( const AssetDescription &  asset,
    const AssetRepositoryRef &  searchRepository 
    )
    static

    ◆ DownloadMultipleAssets()

    static MAXON_METHOD Result<Tuple<ProgressRef, Int> > DownloadMultipleAssets ( const BaseArray< AssetDescription > &  assetsToDownload,
    const AssetRepositoryRef &  searchRepository 
    )
    static

    ◆ DownloadManagerCancelAll()

    static MAXON_METHOD void DownloadManagerCancelAll ( )
    static

    ◆ DownloadManagerIsDownloading()

    static MAXON_METHOD Bool DownloadManagerIsDownloading ( )
    static

    ◆ FreeAssetDownloads()

    static MAXON_METHOD void FreeAssetDownloads ( )
    static