4️⃣Listen For Progress
To listen for progress events, you can listen to the Stream
of DownloadProgress
events returned by the startForeground()
method.
Listening can be done through any method, such as listen()
or the await for
loop.
To actually start downloading any tiles, you must attach a listener to the returned Stream
, even if you do not plan to use the Available Statistics.
Available Statistics
Statistic | Type | Explanation |
---|---|---|
|
| Number of tiles successfully downloaded |
|
| List of tile URLs that failed to download |
|
| Number of expected tiles in the download region |
|
| Total size of all successful tiles (in kibibytes) |
|
| |
|
| Number of tiles skipped due to |
|
| Current duration spent downloading tiles |
|
| Image of the last tile downloaded, or |
|
| Number of tiles attempted (successful + failed) |
|
| Number of tiles remaining (max - attempted) |
|
| |
|
| Percentage of tiles skipped due to |
|
| Percentage of download currently complete |
|
| Average number of tiles per second being downloaded. This uses a specialised exponentially smoothed moving average algorithm for better results (where more recent results affect the value more) |
|
| Estimated duration for the entire download |
|
| Estimated duration for the remaining part of the download |
Last updated