DownloadTask.onProgressUpdate
js
DownloadTask.onProgressUpdate(function callback)Listens for the download progress change event.
Parameters
- function callback: callback function for the download progress change event
Parameters of the callback function
- Object res: returns the download progress change information
res properties:
| Property | Type | Description |
|---|---|---|
| progress | number | Download progress percentage |
| totalBytesWritten | number | Length of data already downloaded, in Bytes |
| totalBytesExpectedToWrite | number | Total length of data expected to be downloaded, in Bytes |
