百度地图SDK for iOS v3.4.4 类参考
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 
13 @protocol BMKOfflineMapDelegate;
14 
16 enum {
17  TYPE_OFFLINE_UPDATE = 0,
18  TYPE_OFFLINE_ZIPCNT = 1,
19  TYPE_OFFLINE_UNZIP = 2,
20  TYPE_OFFLINE_ERRZIP = 3,
21  TYPE_OFFLINE_NEWVER = 4,
22  TYPE_OFFLINE_UNZIPFINISH = 5,
23  TYPE_OFFLINE_ADD = 6
24 };
25 
27 @interface BMKOfflineMap : NSObject
28 
29 @property (nonatomic, weak) id<BMKOfflineMapDelegate> delegate;
30 
31 
32 
38 - (BOOL)scan:(BOOL)deleteFailedr __deprecated_msg("废弃方法(空实现),自2.9.0起废弃,不支持扫描导入离线包");
39 
45 - (BOOL)start:(int)cityID;
46 
52 - (BOOL)update:(int)cityID;
53 
59 - (BOOL)pause:(int)cityID;
60 
66 - (BOOL)remove:(int)cityID;
67 
72 - (NSArray*)getHotCityList;
73 
78 - (NSArray*)getOfflineCityList;
79 
85 - (NSArray*)searchCity:(NSString*)cityName;
86 
91 - (NSArray*)getAllUpdateInfo;
92 
98 - (BMKOLUpdateElement*)getUpdateInfo:(int)cityID;
99 
100 @end
101 
102 
104 @protocol BMKOfflineMapDelegate<NSObject>
110 - (void)onGetOfflineMapState:(int)type withState:(int)state;
111 
112 @end
113 
114 
NSArray * getOfflineCityList()
离线地图服务
Definition: BMKOfflineMap.h:27
离线地图更新信息
Definition: BMKOfflineMapType.h:37
离线地图delegate,用于获取通知
Definition: BMKOfflineMap.h:104
NSArray * getHotCityList()
NSArray * getAllUpdateInfo()