BaiduMap_IOSSDK_v7.0.0_Docs 7.0.0

BMKOfflineMap.h
浏览该文件的文档.
1 /*
2 * BMKOfflineMap.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8
9 #import <Foundation/Foundation.h>
10 #import "BMKOfflineMapType.h"
11
12 @protocol BMKOfflineMapDelegate;
13
15 enum {
16 TYPE_OFFLINE_UPDATE = 0,
17 TYPE_OFFLINE_ZIPCNT = 1,
18 TYPE_OFFLINE_UNZIP = 2,
19 TYPE_OFFLINE_ERRZIP = 3,
20 TYPE_OFFLINE_NEWVER = 4,
21 TYPE_OFFLINE_UNZIPFINISH = 5,
22 TYPE_OFFLINE_ADD = 6
23 };
24
26 @interface BMKOfflineMap : NSObject
27
28 @property (nonatomic, weak) id<BMKOfflineMapDelegate> delegate;
29
33 - (BOOL)scan:(BOOL)deleteFailedr __deprecated_msg("废弃方法(空实现),自2.9.0起废弃,不支持扫描导入离线包");
34
38 - (BOOL)start:(int)cityID;
39
43 - (BOOL)update:(int)cityID;
44
48 - (BOOL)pause:(int)cityID;
49
53 - (BOOL)remove:(int)cityID;
54
57 - (NSArray<BMKOLSearchRecord *> *)getHotCityList;
58
61 - (NSArray<BMKOLSearchRecord *> *)getOfflineCityList;
62
66 - (NSArray<BMKOLSearchRecord *> *)searchCity:(NSString *)cityName;
67
70 - (NSArray<BMKOLUpdateElement *> *)getAllUpdateInfo;
71
75 - (BMKOLUpdateElement *)getUpdateInfo:(int)cityID;
76
77 @end
78
79
81 @protocol BMKOfflineMapDelegate<NSObject>
82
86 - (void)onGetOfflineMapState:(int)type withState:(int)state;
87
88 @end
89
90
TYPE_OFFLINE_ERRZIP
@ TYPE_OFFLINE_ERRZIP
错误的离线包
Definition: BMKOfflineMap.h:19
TYPE_OFFLINE_NEWVER
@ TYPE_OFFLINE_NEWVER
有新版本
Definition: BMKOfflineMap.h:20
TYPE_OFFLINE_ADD
@ TYPE_OFFLINE_ADD
新增离线包
Definition: BMKOfflineMap.h:22
-[BMKOfflineMap getAllUpdateInfo]
NSArray< BMKOLUpdateElement * > * getAllUpdateInfo()
-[BMKOfflineMap getOfflineCityList]
NSArray< BMKOLSearchRecord * > * getOfflineCityList()
TYPE_OFFLINE_ZIPCNT
@ TYPE_OFFLINE_ZIPCNT
检测到的压缩包个数
Definition: BMKOfflineMap.h:17
-[BMKOfflineMap getHotCityList]
NSArray< BMKOLSearchRecord * > * getHotCityList()
BMKOLUpdateElement
离线地图更新信息
Definition: BMKOfflineMapType.h:31
TYPE_OFFLINE_UNZIPFINISH
@ TYPE_OFFLINE_UNZIPFINISH
扫描完毕
Definition: BMKOfflineMap.h:21
TYPE_OFFLINE_UPDATE
@ TYPE_OFFLINE_UPDATE
下载或更新
Definition: BMKOfflineMap.h:16
BMKOfflineMapDelegate-p
离线地图delegate，用于获取通知
Definition: BMKOfflineMap.h:81
TYPE_OFFLINE_UNZIP
@ TYPE_OFFLINE_UNZIP
当前解压的离线包
Definition: BMKOfflineMap.h:18
BMKOfflineMap
离线地图服务
Definition: BMKOfflineMap.h:27
BMKOfflineMap::delegate
id< BMKOfflineMapDelegate > delegate
Definition: BMKOfflineMap.h:28
BMKOfflineMapType.h