onDownloadRegionsComplete abstract method

void onDownloadRegionsComplete(
  1. MapLoaderError? error,
  2. List<RegionId>? regions
)

Called after the download for all requested regions has been completed with success or failure.

In this callback, failure represents non-retryable error (eg. authentication failure because of invalid credentials and similars). Temporary failures (eg. network errors) are notified through DownloadRegionsStatusListener.onPause and downloads will be in paused state so they can be resumed later. Invoked on the main thread.

  • error Represents an error in case of a failure. It is null for an operation that succeeds.

  • regions Represents a list of regions which has been downloaded. It is null in case of an error.

Implementation

void onDownloadRegionsComplete(MapLoaderError? error, List<RegionId>? regions);