TencentNavKit

Instance Methods | List of all members
<TNKDriveNavDelegate> Protocol Reference

驾车导航事件回调 More...

`#import <TNKDriveNavDelegate.h>`

Inheritance diagram for <TNKDriveNavDelegate>:

## Instance Methods
(void) | - driveNavManagerDidStart:
| 导航开始. More...
(void) | - driveNavManagerDidStop:
| 导航结束. More...
(void) | - driveNavManagerOnNavigationDataReady:nav_session_id:success:
| slice状态下导航开启的回调，根据success自行处理后续的逻辑，如失败重新算路等;如三段slice的情况下自行在success的情况下发起导航 More...
(void) | - driveNavManagerWillArriveDestination:
| 获取到达终点附近的回调. 尚未结束导航时, 这个回调可能执行多次. More...
(void) | - driveNavManager:updateNavigationData:
| 获取导航面板信息 More...
(void) | - driveNavManager:didUpdateLocation:
| 获取导航定位更新回调. More...
(void) | - driveNavManager:updateLocationFailedWithError:
| 获取定位失败的回调 More...
(void) | - driveNavManager:gpsStatusDidChange:
| 获取GPS信号状态变化的回调. More...
(void) | - driveNavManager:didStartRerouting:
| 获取重新算路请求开始回调. More...
(void) | - driveNavManager:didOnOffRoute:
| 偏航请求开始回调. More...
(void) | - driveNavManager:didStartNavFail:
| 导航开始失败回调. More...
(void) | - driveNavManager:rerouteDidSuccess:
| 获取重新算路请求成功回调. More...
(void) | - driveNavManager:rerouteDidFail:
| 获取重新算路请求失败回调. More...
(void) | - driveNavManager:rerouteDidInFence:
| 获取重新算路请求的起点命中无路网回调。如果新的起点命中无路网的位置，则暂时不下发新路线 More...
(void) | - driveNavManagerDidUpdateRotueTraffic:
| 更新路线路况数据回调. 具体信息可通过manager.curNavRoute.curTrafficItems取得最新的路况数据；通过manager.backupNavRoutes获取伴随路线的路况信息 More...
(void) | - driveNavManager:updateParallelRoadStatus:
| 获取切换平行路状态更新回调. More...
(void) | - driveNavManager:showGuidedLaneInfo:
| 显示车道信息回调. More...
(void) | - driveNavManagerHideGuidedLaneInfo:
| 隐藏车道线回调. More...
(void) | - driveNavManager:didDeleteBackupRoutes:
| 开启多路线功能时，删除备选路线的回调. More...
(void) | - driveNavManager:didAddBackupRoutes:
| 开启多路线功能时，补充了备选路线的回调. More...
(void) | - driveNavManager:routeDidChange:changeRouteMsg:
| 路线切换回调. More...
(void) | - driveNavManager:didEnterIdleSection:
| 进入空闲区间的回调. More...
(void) | - driveNavManager:showRecommendedRouteInfo:
| 推荐新路线的回调. 开发者可以根据该回调做弹框提示. More...
(void) | - driveNavManager:didArriveWaypointInfo:
| 获取经过途经点回调. More...
(void) | - driveNavManager:didUpdateTollStationInfo:
| 收费站信息更新回调. 通常在驶出收费站时回调 More...
(void) | - driveNavManager:didUpdateTrafficJamInfo:
| 前方拥堵区域信息的更新回调。 More...
(void) | - driveNavManager:didUpdateCameraInfo:
| 前方电子眼信息，会给出一定距离内的电子眼信息。size为0时表示前方一定距离内没有电子眼 More...

## Detailed Description

驾车导航事件回调

## Method Documentation

## ◆ driveNavManager:didAddBackupRoutes:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didAddBackupRoutes: |  | (NSArray< TNKDriveRoute * > *) | backupRoutes
| optional

开启多路线功能时，补充了备选路线的回调.

Since
  5.2.6

Parameters

  manager | manager
  backupRoutes | 补充的备选路线数组

## ◆ driveNavManager:didArriveWaypointInfo:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didArriveWaypointInfo: |  | (TNKNavToWayPointInfo *) | waypointInfo
| optional

获取经过途经点回调.

Parameters

  manager | manager
  waypointInfo | 该途经点信息

## ◆ driveNavManager:didDeleteBackupRoutes:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didDeleteBackupRoutes: |  | (NSArray< NSString * > *) | deletedRouteIDs
| optional

开启多路线功能时，删除备选路线的回调.

Since
  5.2.6

Parameters

  manager | manager
  deletedRouteIDs | 删除掉的路线ID数组

## ◆ driveNavManager:didEnterIdleSection:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didEnterIdleSection: |  | (TNKIdleSectionInfo *) | idleSectionInfo
| optional

进入空闲区间的回调.

Since
  5.4.1

Parameters

  manager | manager
  idleSectionInfo | 空闲区间信息

## ◆ driveNavManager:didOnOffRoute:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didOnOffRoute: |  | (TNKRerouteReason) | rerouteReason
| optional

偏航请求开始回调.

Parameters

  manager | manager
  rerouteReason | 重新算路类型

## ◆ driveNavManager:didStartNavFail:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didStartNavFail: |  | (TNKNavStartFailInfo *) | startFailInfo
| optional

导航开始失败回调.

Parameters

  manager | manager
  startFailInfo | 导航开始失败回调内容

## ◆ driveNavManager:didStartRerouting:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didStartRerouting: |  | (TNKRerouteReason) | rerouteReason
| optional

获取重新算路请求开始回调.

Parameters

  manager | manager
  rerouteReason | 重新算路类型

## ◆ driveNavManager:didUpdateCameraInfo:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didUpdateCameraInfo: |  | (NSArray< TNKNavCameraInfo * > *) | navCameras
| optional

前方电子眼信息，会给出一定距离内的电子眼信息。size为0时表示前方一定距离内没有电子眼

Parameters

  manager | manager
  navCameras | 电子眼信息数组

## ◆ driveNavManager:didUpdateLocation:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didUpdateLocation: |  | (TNKLocation *) | location
| optional

获取导航定位更新回调.

Parameters

  manager | manager
  location | 定位信息

## ◆ driveNavManager:didUpdateTollStationInfo:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didUpdateTollStationInfo: |  | (TNKTollStationInfo *) | tollStationInfo
| optional

收费站信息更新回调. 通常在驶出收费站时回调

Parameters

  manager | manager
  tollStationInfo | 所有走过的收费站信息

## ◆ driveNavManager:didUpdateTrafficJamInfo:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
didUpdateTrafficJamInfo: |  | (TNKTrafficJamInfo *_Nullable) | trafficJamInfo
| optional

前方拥堵区域信息的更新回调。

Parameters

  manager | manager
  trafficJamInfo | 前方拥堵区域信息。为nil时代表拥堵消失

## ◆ driveNavManager:gpsStatusDidChange:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
gpsStatusDidChange: |  | (TNKGpsStatus *) | gpsStatus
| optional

获取GPS信号状态变化的回调.

Parameters

  manager | manager
  gpsStatus | gps信号状态

## ◆ driveNavManager:rerouteDidFail:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
rerouteDidFail: |  | (TNKDriveRerouteResult *) | rerouteresult
| optional

获取重新算路请求失败回调.

Parameters

  manager | manager
  rerouteresult | 重新算路成功结果

## ◆ driveNavManager:rerouteDidInFence:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
rerouteDidInFence: |  | (TNKRerouteReason) | rerouteReason
| optional

获取重新算路请求的起点命中无路网回调。如果新的起点命中无路网的位置，则暂时不下发新路线

Parameters

  manager | manager
  rerouteReason | 偏航的原因

## ◆ driveNavManager:rerouteDidSuccess:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
rerouteDidSuccess: |  | (TNKDriveRerouteResult *) | rerouteresult
| optional

获取重新算路请求成功回调.

Parameters

  manager | manager
  rerouteresult | 重新算路成功结果

## ◆ driveNavManager:routeDidChange:changeRouteMsg:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
routeDidChange: |  | (TNKDriveNavRoute *) | navRoute
changeRouteMsg: |  | (TNKChangeRouteMsg *) | msg
| optional

路线切换回调.

Since
  5.4.0

Parameters

  manager | manager
  navRoute | 路线数据
  msg | 换路理由等信息

## ◆ driveNavManager:showGuidedLaneInfo:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
showGuidedLaneInfo: |  | (TNKLaneInfo *) | laneInfo
| optional

显示车道信息回调.

Since
  5.3.3

Parameters

  manager | manager
  laneInfo | 车道信息回调.

## ◆ driveNavManager:showRecommendedRouteInfo:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
showRecommendedRouteInfo: |  | (TNKRecommendRouteInfo *) | recommendRouteInfo
| optional

推荐新路线的回调. 开发者可以根据该回调做弹框提示.

Since
  5.4.0

Parameters

  manager | manager
  recommendRouteInfo | 推荐新路线的信息

## ◆ driveNavManager:updateLocationFailedWithError:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
updateLocationFailedWithError: |  | (NSError *) | error
| optional

获取定位失败的回调

Parameters

  manager | manager
  error | 错误信息

## ◆ driveNavManager:updateNavigationData:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
updateNavigationData: |  | (TNKDriveNavigationData *) | navigationData
| optional

获取导航面板信息

Parameters

  manager | manager
  navigationData | 导航面板信息

## ◆ driveNavManager:updateParallelRoadStatus:

- (void) driveNavManager: |  | (TNKDriveNavManager *) | manager
updateParallelRoadStatus: |  | (TNKParallelRoadStatus *) | parallelRoadStatus
| optional

获取切换平行路状态更新回调.

Since
  5.2.8

Parameters

  manager | manager
  parallelRoadStatus | 切换平行路状态

## ◆ driveNavManagerDidStart:

- (void) driveNavManagerDidStart: |  | (TNKDriveNavManager *) | manager |
| optional

导航开始.

Parameters

  manager | manager

## ◆ driveNavManagerDidStop:

- (void) driveNavManagerDidStop: |  | (TNKDriveNavManager *) | manager |
| optional

导航结束.

Parameters

  manager | manager

## ◆ driveNavManagerDidUpdateRotueTraffic:

- (void) driveNavManagerDidUpdateRotueTraffic: |  | (TNKDriveNavManager *) | manager |
| optional

更新路线路况数据回调. 具体信息可通过manager.curNavRoute.curTrafficItems取得最新的路况数据；通过manager.backupNavRoutes获取伴随路线的路况信息

Parameters

  manager | manager

## ◆ driveNavManagerHideGuidedLaneInfo:

- (void) driveNavManagerHideGuidedLaneInfo: |  | (TNKDriveNavManager *) | manager |
| optional

隐藏车道线回调.

Parameters

  manager | manager

## ◆ driveNavManagerOnNavigationDataReady:nav_session_id:success:

- (void) driveNavManagerOnNavigationDataReady: |  | (TNKDriveNavManager *) | manager
nav_session_id: |  | (NSString *) | nav_session_id
success: |  | (BOOL) | success
| optional

slice状态下导航开启的回调，根据success自行处理后续的逻辑，如失败重新算路等;如三段slice的情况下自行在success的情况下发起导航

Parameters

  nav_session_id | session id
  success | 成功或者失败

## ◆ driveNavManagerWillArriveDestination:

- (void) driveNavManagerWillArriveDestination: |  | (TNKDriveNavManager *) | manager |
| optional

获取到达终点附近的回调. 尚未结束导航时, 这个回调可能执行多次.

Parameters

  manager | manager

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

- TNKDriveNavDelegate.h