The maximum number of concurrent when downloading
The maximum number of request can be launched per frame when downloading
The max number of retries when fail
Wait for while before another retry, unit: ms
The address of remote server
Use corresponding handler to download file under limitation
The unique id of this download
The url should be downloaded
The type indicates that which handler should be used to download, such as '.jpg'
some optional paramters will be transferred to the corresponding handler.
callback when finishing downloading
Load sub package with name.
Sub package name
Callback invoked when sub package loaded
Register custom handler if you want to change default behavior or extend downloader to download other format file
Extension likes '.jpg' or map likes {'.jpg': jpgHandler, '.png': pngHandler}
handler
Generated using TypeDoc
Control all download process, it is a singleton. All member can be accessed with
cc.assetManager.downloader
, it can download several types of files: