I have manually binding a singleton downloader for lua
Downloader is not exported for lua in the official release branch
The C++ path of Downloader is (cocos/network/Downloader)
It’s useful for multithreads downloads !
local downloader = Require("[Your Path].Downloader")
local taskId = downloader.downloadData(
function (result, data)
print("download ended – ", result, data)
function (bytesRec, totalBytesRec, totalBytesExpected)
print("download progress – ", totalBytesRec*100/totalBytesExpected)
Any suggestions is welcomed !