BaiduMap_IOSSDK_v6.5.9_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
15enum {
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
离线地图更新信息
Definition: BMKOfflineMapType.h:31
离线地图服务
Definition: BMKOfflineMap.h:27
NSArray< BMKOLSearchRecord * > * getHotCityList()
NSArray< BMKOLSearchRecord * > * getOfflineCityList()
NSArray< BMKOLUpdateElement * > * getAllUpdateInfo()
离线地图delegate,用于获取通知
Definition: BMKOfflineMap.h:81