com.amap.api.maps.offlinemap

## 接口 OfflineMapManager.OfflineMapDownloadListener

- 封闭类:
    OfflineMapManager

      public static interface OfflineMapManager.OfflineMapDownloadListener

  离线地图下载过程中状态回调
  Status callback during offline map download
  从以下版本开始:
    2.0.1

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `onCheckUpdate(boolean hasNew, java.lang.String name)` 当调用updateOfflineMapCity 等检查更新函数的时候会被调用 Called when update functions like updateOfflineMapCity are invoked
    `void` | `onDownload(int status, int completeCode, java.lang.String name)` 下载状态回调，在调用downloadByCityName 等下载方法的时候会启动 Download status callback, which is triggered when download methods like downloadByCityName are called
    `void` | `onRemove(boolean success, java.lang.String name, java.lang.String describe)` 当调用`OfflineMapManager.remove(String)`方法时，如果有设置监听，会回调此方法 当删除省份时，该方法会被调用多次，返回省份内城市删除情况。

- - ### 方法详细资料

    - #### onDownload

          void onDownload(int status,
                          int completeCode,
                          java.lang.String name)

      下载状态回调，在调用downloadByCityName 等下载方法的时候会启动
      Download status callback, which is triggered when download methods like downloadByCityName are called
      参数:
        `status` - 参照`OfflineMapStatus`
        Refer to `OfflineMapStatus`
        `completeCode` - 下载进度，下载完成之后为解压进度
        Download progress, followed by decompression progress after download is complete
        `name` - 当前所下载的城市的名字
        Name of the currently downloaded city
      从以下版本开始:
        2.0.1

    - #### onCheckUpdate

          void onCheckUpdate(boolean hasNew,
                             java.lang.String name)

      当调用updateOfflineMapCity 等检查更新函数的时候会被调用
      Called when update functions like updateOfflineMapCity are invoked
      参数:
        `hasNew` - true表示有更新，说明官方有新版或者本地未下载
        True indicates an update, meaning there is a new official version or it has not been downloaded locally
        `name` - 被检测更新的城市的名字
        Name of the city being checked for updates
      从以下版本开始:
        2.0.1

    - #### onRemove

          void onRemove(boolean success,
                        java.lang.String name,
                        java.lang.String describe)

      当调用`OfflineMapManager.remove(String)`方法时，如果有设置监听，会回调此方法
      当删除省份时，该方法会被调用多次，返回省份内城市删除情况。
      When the `OfflineMapManager.remove(String)` method is called, if a listener is set, this method will be called back
      When deleting a province, this method will be called multiple times, returning the deletion status of cities within the province.
      参数:
        `success` - ture：删除成功
        True: deletion successful
        `name` - 所删除的城市的名字
        Name of the deleted city
        `describe` - 删除描述，如 删除成功 "本地无数据"
        Deletion description, such as "Deletion successful" or "No local data"
      从以下版本开始:
        2.0.1