Downloader
Stream object
Code examples below
stream.start(callback)
Specify event that will be called when downloading will be started
stream.progress(callback)
Specify event that will be called every stream.progressInterval
ms
This callback will receive the current downloaded data size, total data size, and how much data was downloaded after the previous call
stream.finish(callback)
Specify event that will be called when downloading will be finished
stream.pause()
Pause downloading
stream.resume()
Resume downloading
stream.close(forced)
Close downloading stream
Downloader class
Downloader.download(uri, output)
Downloader.fileFromUri(uri)
Downloader.closeStreams(forced)
Last updated