getDownloadableRegionsWithLanguageCode abstract method

TaskHandle getDownloadableRegionsWithLanguageCode(
  1. LanguageCode languageCode,
  2. DownloadableRegionsCallback callback
)

Performs an asynchronous request to fetch a list of Region objects with Region.name in given MapDownloader.getDownloadableRegionsWithLanguageCode.languageCode, that can be used to download the actual map data in a separate request.

  • languageCode The language code determines the language of Region.name.

  • callback Callback which receives the result on the main thread.

Returns TaskHandle. Handle that will be used to manipulate the execution of the task, for example, to cancel on ongoing request.

Implementation

TaskHandle getDownloadableRegionsWithLanguageCode(LanguageCode languageCode, DownloadableRegionsCallback callback);