OpenSDK8.1.1
Loading...
Searching...
No Matches
BNaviService Class Reference

导航SDK核心服务类,通过该类调用SDK的各种接口 More...

#include <BNaviService.h>

Inheritance diagram for BNaviService:

Instance Methods

(void) - initNaviService:success:fail:
(void) - authorizeNaviAppKey:completion:
(void) - authorizeLicenseNaviAK:deviceID:completion:
(void) - authorizeLicenseNaviAK:deviceID:needAction:completion:
(void) - authorizeTTSAppId:apiKey:secretKey:completion:
(BOOL) - isServicesInited
(id< BNUIManagerProtocol >) - uiManager
(id< BNRoutePlanManagerProtocol >) - routePlanManager
(id< BNStrategyManagerProtocol >) - strategyManager
(id< BNLocationManagerProtocol >) - locationManager
(id< BNSoundProtocol >) - soundManager
(id< BNDigitDogManagerProtocol >) - digitDogManager
(id< BNDriveRouteProtocol >) - driveRouteManager
(id< BNLightNaviManagerProtocol >) - lightNaviManager
(id< BNMapOverlayProtocol >) - mapOverlayManager
(id< BNDriverYellowTipsProtocol >) - yellowTipsManager
(id< BNNaviSettingDataManagerProtocol >) - naviSettingDataManager
(id< BNaviIndoorLocationProtocol >) - naviIndoorLocationManager
(id< BNMultiMapManagerProtocol >) - naviMultiMapManager
 导航多底图管理类
(id< BNBackgroundNavigationViewManagerProtocol >) - naviBackgroundNavigationManager
 导航后台渲染管理类
(id< BNNaviCoreLogicManagerProtocol >) - naviCoreLogicManager
 专业导航逻辑管理类
(id< BNDriveLimitLineManagerProtocol >) - driverLimitLineManager
 限行面管理类
(id< BNRoutePreviewManagerProtocol >) - routePreviewManager
 路线详解管理类

Class Methods

(BNaviService *) + getInstance
(NSString *) + sdkVersion
(void) + setAgreePrivacy:
 设置是否同意隐私政策 请务必在初始化前调用。没有同意将无法使用导航的算路功能。

Properties

BNKMainMapView * naviMapView

Detailed Description

导航SDK核心服务类,通过该类调用SDK的各种接口

Method Documentation

◆ authorizeLicenseNaviAK:deviceID:completion:

- (void) authorizeLicenseNaviAK: (NSString *) ak
deviceID: (NSString *) deviceId
completion: (void(^)(NSError *requestError)) completion 

license鉴权 必传参数 "ak" @"device_id"

Parameters
completion回调 requestError:为 nil 代表有权限。 code :BNNetworkErrorCode 类型。 domain:错误描述 。

◆ authorizeLicenseNaviAK:deviceID:needAction:completion:

- (void) authorizeLicenseNaviAK: (NSString *) ak
deviceID: (NSString *) deviceId
needAction: (BOOL) action
completion: (void(^)(NSError *requestError)) completion 

license鉴权 必传参数 "ak" @"device_id" action: YES激活。 NO不激活。如第一次传YES后,后续传NO都会是激活状态。因之前激活过。

Parameters
completion回调 requestError:为 nil 代表有权限。 code :BNNetworkErrorCode 类型。 domain:错误描述 。

◆ authorizeNaviAppKey:completion:

- (void) authorizeNaviAppKey: (NSString *) appKey
completion: (void(^)(BOOL suc)) completion 

导航SDK鉴权

Parameters
appKey地图开放平台上注册的ak
completion回调

◆ authorizeTTSAppId:apiKey:secretKey:completion:

- (void) authorizeTTSAppId: (NSString *) appId
apiKey: (NSString *) apiKey
secretKey: (NSString *) secretKey
completion: (void(^)(BOOL suc)) completion 

TTS SDK鉴权(需要到http://yuyin.baidu.com/app注册app)

Parameters
appIdappId
apiKeyapiKey
secretKeysecretKey
completion回调

◆ digitDogManager

- (id< BNDigitDogManagerProtocol >) digitDogManager

电子狗模块管理对象

Returns
电子狗模块管理对象

◆ driveRouteManager

- (id< BNDriveRouteProtocol >) driveRouteManager

驾车路线管理器

Returns
驾车路线管理器

◆ getInstance

+ (BNaviService *) getInstance

获取导航整体服务单例对象

Returns
导航整体服务单例对象

◆ initNaviService:success:fail:

- (void) initNaviService: (NSDictionary *) params
success: (dispatch_block_t) succes
fail: (dispatch_block_t) fail 

初始化导航SDK

Parameters
params初始化参数
succes成功回调
fail失败回调

◆ isServicesInited

- (BOOL) isServicesInited

查询引擎是否初始化完成

Returns
是否初始化完成

◆ lightNaviManager

- (id< BNLightNaviManagerProtocol >) lightNaviManager

轻导航管理器

Returns
轻导航管理器

◆ locationManager

- (id< BNLocationManagerProtocol >) locationManager

获取定位服务器,用于获取当前定位

Returns
定位服务器

◆ mapOverlayManager

- (id< BNMapOverlayProtocol >) mapOverlayManager

获取图层管理实例对象

Returns
图层管理实例对象

◆ naviIndoorLocationManager

- (id< BNaviIndoorLocationProtocol >) naviIndoorLocationManager

室内导航定位模块

◆ naviSettingDataManager

- (id< BNNaviSettingDataManagerProtocol >) naviSettingDataManager

导航中设置项 管理模块

◆ routePlanManager

- (id< BNRoutePlanManagerProtocol >) routePlanManager

获取路径规划管理器,用于路径规划

Returns
路径规划管理器

◆ sdkVersion

+ (NSString *) sdkVersion

获取SDK版本号

Returns
sdk的版本号

◆ soundManager

- (id< BNSoundProtocol >) soundManager

获取语音播报管理对象

Returns
语音播报管理对象

◆ strategyManager

- (id< BNStrategyManagerProtocol >) strategyManager

获取策略管理器,用于调整在离线策略、白天黑夜策略、横竖向切换策略等等

Returns
策略管理器

◆ uiManager

- (id< BNUIManagerProtocol >) uiManager

获取到导航过程页管理器,用于进入退出导航过程页

Returns
导航过程页管理器

◆ yellowTipsManager

- (id< BNDriverYellowTipsProtocol >) yellowTipsManager

小黄条管理器


The documentation for this class was generated from the following file: