IndoorMapSDK
室内地图SDK参考文档
 全部  函数 变量 属性
OIMDataManager.h
1 //
2 // OIMDataManager.h
3 // IndoorMapSDK
4 //
5 // Created by Macro on 15/11/26.
6 // Copyright © 2015年 Macro. All rights reserved.
7 //
8 
25 #import <Foundation/Foundation.h>
26 //#import "OIMType.h"
27 #import "OIMFeature.h"
28 
29 @protocol OIMDownloadDelegate;
30 
43 @interface OIMDataManager : NSObject
44 
55 @property(nonatomic, strong)NSString* key;
56 
66 @property(nonatomic, strong)NSString* dataPath;
67 
75 @property(nonatomic, strong)NSString* resourcePath;
76 
84 @property(nonatomic, weak)id<OIMDownloadDelegate> downloadDelegate;
85 
106 -(int)downloadBuilding:(NSString*)buildingId;
107 
127 -(int)downloadBuildings:(NSArray*)buildingIds;
128 
147 -(int)removeBuilding:(NSString*)buildingId;
148 
163 -(int)removeAllBuildings;
164 
179 -(NSArray*)getAllBuildings;
180 
181 #pragma mark
182 
200 @property(nonatomic, strong)NSString* buildingId;
201 
217 @property(nonatomic)int floorNo;
218 
235 -(NSArray*)getFloorList;
236 
248 -(OIMBuilding*)getBuildingInfo;
249 
250 
251 
252 #pragma mark
253 
254 
275 -(NSArray*)searchByKeywords:(NSString*)keywords;
276 -(NSArray*)searchByKeywords:(NSString*)keywords floorNo:(int)floorNo;
277 
299 -(NSArray*)searchByType:(NSString*)type;
300 -(NSArray*)searchByType:(NSString*)type floorNo:(int)floorNo;
301 
318 -(NSArray*)getAllSearchTypes;
319 
341 -(NSArray*)searchByCategories:(NSArray*)categories;
342 -(NSArray*)searchByCategories:(NSArray*)categories floorNo:(int)floorNo;
343 
367 -(NSArray*)search:(OIMPoint)position byDistance:(float)distance limit:(int)limit;
368 
369 
385 -(OIMFeature *)getFeatureById:(NSString *)featureId;
386 
387 
398 -(int)loadExtensionData:(NSData*)extensionData;
399 
400 
401 
402 @end
403 
404 #pragma mark
405 
411 @protocol OIMDownloadDelegate <NSObject>
412 
422 -(void)dataManager:(OIMDataManager*)dataManager didDownloadSuccess:(NSString*)buildingId updated:(BOOL)updated;
423 
433 -(void)dataManager:(OIMDataManager*)dataManager didDownloadFailure:(NSString*)buildingId error:(NSError*)error;
434 
435 @optional
448 -(void)dataManager:(OIMDataManager*)dataManager didDownload:(NSString*)buildingId percent:(int)percent;
449 
450 @end
451 
452 
453 
454 
455 
NSString * dataPath
数据存储路径
Definition: OIMDataManager.h:66
id< OIMDownloadDelegate > downloadDelegate
数据下载事件回调
Definition: OIMDataManager.h:84
室内POI数据结构定义
Definition: OIMFeature.h:31
三维点坐标
Definition: OIMType.h:230
数据下载事件
Definition: OIMDataManager.h:411
NSString * key
LBS开发者KEY.
Definition: OIMDataManager.h:55
建筑物数据结构
Definition: OIMFeature.h:133
NSString * resourcePath
资源文件存储路径
Definition: OIMDataManager.h:75
Definition: OIMDataManager.h:43