Map Doc  1.0
iOS-引擎SDK-开放平台
MBNaviDataManager类 参考

#import <MBNaviDataManager.h>

类 MBNaviDataManager 继承关系图:

构造函数

(NSInteger) - dataEntityNumber
 
(void) - setDataFilter:
 
(nullable MBNaviDataEntity *) - dataEntityByIndex:
 
(nullable MBNaviDataEntity *) - dataEntityByDataId:
 
(void) - deleteLocalDataByDataId:
 
(void) - refreshDataStoreFromFile:
 
(void) - refreshDatastore
 
(BOOL) - applyDataWithMoveFile:
 
(void) - setPurchasedDataIds:
 
(BOOL) - isApplying
 
(void(^)) - _Nullable
 
(void(^)) - _Nullable
 
(void(^)) - _Nullable
 
(void(^)) - _Nullable
 
(void(^)) - _Nullable
 
(void(^)) - _Nullable
 
(void(^)) - _Nullable
 

类方法

(void) + cleanup
 

属性

MBNaviDataManager *_Nonnull sharedNaviDataManager
 
NSString *_Nonnull baseURL
 
id< MBNaviDataManagerDelegate > _Nullable delegate
 
void(^ _Nullable )(void)
 

详细描述

数据商店类

函数文档

◆ _Nullable() [1/7]

- (void(^ )) _Nullable (NSArray< MBNaviDataEntity *> *)  _Nonnull

◆ _Nullable() [2/7]

- (void(^ )) _Nullable (void) 

◆ _Nullable() [3/7]

- (void(^ )) _Nullable (NSUInteger)  progress

◆ _Nullable() [4/7]

- (void(^ )) _Nullable (MBNaviDataEntity *)  _Nonnull

◆ _Nullable() [5/7]

- (void(^ )) _Nullable (MBNaviDataEntity *)  _Nonnull

◆ _Nullable() [6/7]

- (void(^ )) _Nullable (void) 

◆ _Nullable() [7/7]

- (void(^ )) _Nullable (void) 

◆ applyDataWithMoveFile:()

- (BOOL) applyDataWithMoveFile: (nonnull MBNaviDataEntity *)  entity

apply by move file

参数
entityMBNaviDataEntity
返回
YES indicates success
自从
5.0.x

◆ cleanup()

+ (void) cleanup

数据商店清理

自从
5.0.x

◆ dataEntityByDataId:()

- (nullable MBNaviDataEntity*) dataEntityByDataId: (nonnull NSString *)  dataId

根据数据实体的 Id 得到数据实体

参数
dataId数据实体 Id
返回
数据实体

◆ dataEntityByIndex:()

- (nullable MBNaviDataEntity *) dataEntityByIndex: (NSInteger)  index

根据索引等到数据实体

参数
index数据实体索引
返回
数据实体

◆ dataEntityNumber()

- (NSInteger) dataEntityNumber

数据实体个数

返回
数据实体个数

◆ deleteLocalDataByDataId:()

- (void) deleteLocalDataByDataId: (nonnull NSString *)  dataId

根据数据实体的 Id 删除数据实体

参数
dataIddataId 数据实体 Id

◆ isApplying()

- (BOOL) isApplying

是否有正在应用的实体

返回
YES 表示正在应用
自从
5.0.x

◆ refreshDatastore()

- (void) refreshDatastore

刷新数据商店

◆ refreshDataStoreFromFile:()

- (void) refreshDataStoreFromFile: (nonnull NSString *)  fileName

根据文件名刷新数据商店

参数
fileName文件名

◆ setDataFilter:()

- (void) setDataFilter: (nonnull NSString *)  filter

filter data by dataId

参数
filtere.g: "cn.*, tts.*"
自从
5.1.0

◆ setPurchasedDataIds:()

- (void) setPurchasedDataIds: (nonnull NSArray< NSString * > *)  dataIds

设置购买的数据 Id

参数
dataIds数据 Id 的数组

属性说明

◆ _Nullable

- (void(^ _Nullable) (void))
readwritenonatomiccopy

◆ baseURL

- (NSString* _Nonnull) baseURL
readwritenonatomiccopy

数据商店的 URL

◆ delegate

- (id<MBNaviDataManagerDelegate> _Nullable) delegate
readwritenonatomicweak

◆ sharedNaviDataManager

- (MBNaviDataManager* _Nonnull) sharedNaviDataManager
readatomicstrong

数据商店单例


该类的文档由以下文件生成: