iOS高德地图SDK(3D) V11.2.0001

Classes | Typedefs | Enumerations | Variables
MAOfflineMap.h File Reference
`#import "MAConfig.h"`
`#import <Foundation/Foundation.h>`
`#import "MAOfflineProvince.h"`
`#import "MAOfflineItemNationWide.h"`
`#import "MAOfflineItemMunicipality.h"`

Go to the source code of this file.

## Classes
class | MAOfflineMap

## Typedefs
typedef void(^ | MAOfflineMapDownloadBlock) (MAOfflineItem *downloadItem, MAOfflineMapDownloadStatus downloadStatus, id info)
| 离线地图下载过程回调block The callback block for the offline map download process More...
typedef void(^ | MAOfflineMapNewestVersionBlock) (BOOL hasNewestVersion)
| 离线地图检查更新回调block Offline map check update callback block More...

## Enumerations
enum | MAOfflineMapDownloadStatus : NSInteger { MAOfflineMapDownloadStatusWaiting = 0 , MAOfflineMapDownloadStatusStart , MAOfflineMapDownloadStatusProgress , MAOfflineMapDownloadStatusCompleted , MAOfflineMapDownloadStatusCancelled , MAOfflineMapDownloadStatusUnzip , MAOfflineMapDownloadStatusFinished , MAOfflineMapDownloadStatusError }
enum | MAOfflineMapError : NSInteger { MAOfflineMapErrorUnknown = -1 , MAOfflineMapErrorCannotWriteToTmp = -2 , MAOfflineMapErrorCannotOpenZipFile = -3 , MAOfflineMapErrorCannotExpand = -4 }

## Variables
NSString *const | MAOfflineMapErrorDomain
NSString *const | MAOfflineMapDownloadReceivedSizeKey
NSString *const | MAOfflineMapDownloadExpectedSizeKey

## Typedef Documentation

## ◆ MAOfflineMapDownloadBlock

typedef void(^ MAOfflineMapDownloadBlock) (MAOfflineItem *downloadItem, MAOfflineMapDownloadStatus downloadStatus, id info)

离线地图下载过程回调block The callback block for the offline map download process

Parameters

  downloadItem | 下载的item Downloaded item
  downloadStatus | 下载状态 Download status
  info | 下载过程中的附加信息 Additional information during download

## ◆ MAOfflineMapNewestVersionBlock

typedef void(^ MAOfflineMapNewestVersionBlock) (BOOL hasNewestVersion)

离线地图检查更新回调block Offline map check update callback block

Parameters

  hasNewestVersion | 是否有新版本的布尔值 Boolean value indicating whether there is a new version
  hasNewestVersion |

## Enumeration Type Documentation

## ◆ MAOfflineMapDownloadStatus

enum MAOfflineMapDownloadStatus : NSInteger

离线地图下载状态 Offline map download status

Enumerator
MAOfflineMapDownloadStatusWaiting | 已插入队列，等待中 Inserted into the queue, waiting
MAOfflineMapDownloadStatusStart | 开始下载 Download started
MAOfflineMapDownloadStatusProgress | 下载过程中 Downloading
MAOfflineMapDownloadStatusCompleted | 下载成功 Download successful
MAOfflineMapDownloadStatusCancelled | 取消 Cancel
MAOfflineMapDownloadStatusUnzip | 解压缩 Decompressing
MAOfflineMapDownloadStatusFinished | 全部顺利完成 All completed successfully
MAOfflineMapDownloadStatusError | 发生错误 Error occurred

## ◆ MAOfflineMapError

enum MAOfflineMapError : NSInteger

离线地图下载错误类型 Offline map download error type

Enumerator
MAOfflineMapErrorUnknown | 未知的错误 Unknown error
MAOfflineMapErrorCannotWriteToTmp | 写入临时目录失败 Failed to write to temporary directory
MAOfflineMapErrorCannotOpenZipFile | 打开归档文件失败 Failed to open archive file
MAOfflineMapErrorCannotExpand | 解归档文件失败 Failed to extract archive file

## Variable Documentation

## ◆ MAOfflineMapDownloadExpectedSizeKey

NSString* const MAOfflineMapDownloadExpectedSizeKey
| extern

下载过程info的key，表示总的数据大小 The key in the download process info, indicating the total data size

## ◆ MAOfflineMapDownloadReceivedSizeKey

NSString* const MAOfflineMapDownloadReceivedSizeKey
| extern

当downloadStatus == MAOfflineMapDownloadStatusProgress 时, info参数是个NSDictionary, 如下两个key用来获取已下载和总和的数据大小(单位byte), 对应的是NSNumber(long long) 类型. 当downloadStatus == MAOfflineMapDownloadStatusError 时, info参数是NSError When downloadStatus == MAOfflineMapDownloadStatusProgress, the info parameter is an NSDictionary, The following two keys are used to obtain the size of the downloaded and total data (in bytes), corresponding to the NSNumber(long long) type. When downloadStatus == MAOfflineMapDownloadStatusError, the info parameter is NSError, 下载过程info的key，表示已下载数据大小 The key in the download process info, indicating the size of the downloaded data

## ◆ MAOfflineMapErrorDomain

NSString* const MAOfflineMapErrorDomain
| extern

离线下载错误domain Offline download error domain

© 2017 高德信息技术有限公司 版权所有，保留所有权利。