BaiduMap_IOSSDK_v4.4.2_Docs
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 
30 
31 
37 - (BOOL)scan:(BOOL)deleteFailedr __deprecated_msg("废弃方法(空实现),自2.9.0起废弃,不支持扫描导入离线包");
38 
44 - (BOOL)start:(int)cityID;
45 
51 - (BOOL)update:(int)cityID;
52 
58 - (BOOL)pause:(int)cityID;
59 
65 - (BOOL)remove:(int)cityID;
66 
71 - (NSArray*)getHotCityList;
72 
77 - (NSArray*)getOfflineCityList;
78 
84 - (NSArray*)searchCity:(NSString*)cityName;
85 
90 - (NSArray*)getAllUpdateInfo;
91 
97 - (BMKOLUpdateElement*)getUpdateInfo:(int)cityID;
98 
99 @end
100 
101 
103 @protocol BMKOfflineMapDelegate<NSObject>
109 - (void)onGetOfflineMapState:(int)type withState:(int)state;
110 
111 @end
112 
113 
NSArray * getOfflineCityList()
离线地图服务
Definition: BMKOfflineMap.h:26
离线地图更新信息
Definition: BMKOfflineMapType.h:37
离线地图delegate,用于获取通知
Definition: BMKOfflineMap.h:103
NSArray * getHotCityList()
NSArray * getAllUpdateInfo()