Monitoring Download Progress
This page instructs how to subscribe to download progress updates for routing data and map tiles and releasing the subscription once the download finishes.
observeOfflineRegionProgress combines routing and map progress by regionId and calculates overallState and overallPercent. The callback is delivered on the main queue and can update UIKit directly. The minimum supported polling interval is 200 milliseconds.
Subscribe and Publish progress updates
The screen must retain the subscription and cancel it when the screen closes. Canceling the subscription stops only UI polling but it does not stop the download. To display each data source separately, use observeUnifiedOfflineProgress and distinguish routing from map through entry.kind.
| Field | Meaning | UI guidance |
|---|---|---|
overallState | Combined region task state | Controls buttons and status text |
overallPercent | Combined percentage for routing data and map tiles | Displays overall progress |
routeNetwork | Routing subtask, if available | Shows routing-data status |
mapTile | Map-tile subtask, if available | Shows map-display data status |