高德地图SDK(导航) V10.0.900
Loading...
Searching...
No Matches
<AMapNaviDriveDataRepresentable> Protocol Reference

AMapNaviDriveDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviDriveManager 的addDataRepresentative:方法进行注册,便可获取导航过程中的导航数据更新. 可以根据不同需求,选取使用特定的数据进行导航界面自定义. AMapNaviDriveView 即通过该协议实现导航过程展示.也可以依据导航数据的更新进行其他的逻辑处理. More...

#import <AMapNaviDriveDataRepresentable.h>

Inheritance diagram for <AMapNaviDriveDataRepresentable>:
AMapNaviDriveView AMapNaviHUDView

Instance Methods

(void) - driveManager:updateNaviMode:
 导航模式更新回调. 从5.3.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviDriveManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态.
 
(void) - driveManager:updateNaviRouteID:
 路径ID更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
 
(void) - driveManager:updateNaviRoute:
 路径信息更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
 
(void) - driveManager:updateNaviInfo:
 导航信息更新回调
 
(void) - driveManager:updateNaviLocation:
 自车位置更新回调 (since 5.0.0,模拟导航和实时导航的自车位置更新都会走此回调)
 
(void) - driveManager:showCrossImage:
 需要显示路口放大图时的回调。注意:10.0.2版本开始,自定义View中如果设置了showCrossImage为YES,回调中crossImage为nil
 
(void) - driveManagerHideCrossImage:
 需要隐藏路口放大图时的回调。
 
(void) - driveManager:showLaneBackInfo:laneSelectInfo:
 需要显示车道信息时的回调.可通过 UIImage *CreateLaneInfoImageWithLaneInfo(NSString *laneBackInfo, NSString *laneSelectInfo); 方法创建车道信息图片 0-直行; 1-左转; 2-直行和左转; 3-右转; 4-直行和右转; 5-左转掉头; 6-左转和右转; 7-直行和左转和右转; 8-右转掉头; 9-直行和左转掉头; 10-直行和右转掉头; 11-左转和左转掉头; 12-右转和右转掉头; 13-直行左侧道路变宽; 14-左转和左转掉头左侧变宽; 16-直行和左转和左掉头; 17-右转和左掉头; 18-左转和左掉头和右转; 19-直行和右转和左掉头; 20-左转和右掉头; 21-公交车道; 23-可变车道; 255-只会出现在laneSelectInfo,表示目前规划的路径,不可以走这个车道
 
(void) - driveManagerHideLaneInfo:
 需要隐藏车道信息时的回调
 
(void) - driveManager:updateTrafficStatus:
 路况光柱信息更新回调
 
(void) - driveManager:updateCameraInfos:
 电子眼信息更新回调 since 5.0.0
 
(void) - driveManager:updateServiceAreaInfos:
 服务区和收费站信息更新回调 since 5.0.0
 
(void) - driveManager:updateParallelRoadStatus:
 通知当前是否可以进行平行道路切换,包括主路、辅路以及高架桥上、高架桥下. since 5.3.0
 
(void) - driveManager:updateIntervalCameraWithPositionState:startInfo:endInfo:
 区间电子眼信息更新回调 since 6.0.0
 
(void) - driveManager:updateTurnIconImage:turnIconType:
 导航中的转向图标更新回调 since 6.2.0
 
(void) - driveManager:updateNextTurnIconImage:nextTurnIconType:
 导航中相对于当前转向图标,下一个转向图标更新回调 since 6.9.0
 
(void) - driveManager:updateBackupRoute:
 多路线导航模式下的备选路线更新回调, 注意:此函数只有在 driveManager 设置了多路线导航模式才会回调. since 6.3.0
 
(void) - driveManager:updateCongestionInfo:
 前方拥堵区域信息的更新回调. since 7.5.0
 
(void) - driveManager:updateTrafficFacilities:
 巡航道路设施信息更新回调.该更新回调只有在detectedMode开启后有效
 
(void) - driveManager:updateCruiseElecCameraInfos:
 巡航时自车前方电子眼信息.该更新回调只有在detectedMode开启后有效 since 6.7.0
 
(void) - driveManager:updateCruiseInfo:
 巡航信息更新回调.该更新回调只有在detectedMode开启后有效
 
(void) - driveManager:updateCruiseCongestionInfo:
 巡航状态下的拥堵区域信息. 该更新回调只有在detectedMode开启后有效 since 6.7.0
 

Detailed Description

AMapNaviDriveDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviDriveManager 的addDataRepresentative:方法进行注册,便可获取导航过程中的导航数据更新. 可以根据不同需求,选取使用特定的数据进行导航界面自定义. AMapNaviDriveView 即通过该协议实现导航过程展示.也可以依据导航数据的更新进行其他的逻辑处理.

Method Documentation

◆ driveManager:showCrossImage:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
showCrossImage: (nullable UIImage *)  crossImage 
optional

需要显示路口放大图时的回调。注意:10.0.2版本开始,自定义View中如果设置了showCrossImage为YES,回调中crossImage为nil

Parameters
driveManager驾车导航管理类
crossImage路口放大图Image(宽:高 = 25:16)

◆ driveManager:showLaneBackInfo:laneSelectInfo:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
showLaneBackInfo: (NSString *)  laneBackInfo
laneSelectInfo: (NSString *)  laneSelectInfo 
optional

需要显示车道信息时的回调.可通过 UIImage *CreateLaneInfoImageWithLaneInfo(NSString *laneBackInfo, NSString *laneSelectInfo); 方法创建车道信息图片 0-直行; 1-左转; 2-直行和左转; 3-右转; 4-直行和右转; 5-左转掉头; 6-左转和右转; 7-直行和左转和右转; 8-右转掉头; 9-直行和左转掉头; 10-直行和右转掉头; 11-左转和左转掉头; 12-右转和右转掉头; 13-直行左侧道路变宽; 14-左转和左转掉头左侧变宽; 16-直行和左转和左掉头; 17-右转和左掉头; 18-左转和左掉头和右转; 19-直行和右转和左掉头; 20-左转和右掉头; 21-公交车道; 23-可变车道; 255-只会出现在laneSelectInfo,表示目前规划的路径,不可以走这个车道

Parameters
driveManager驾车导航管理类
laneBackInfo车道背景信息,例如:"1|0|0|4",表示当前道路有4个车道,分别为"左转|直行|直行|右转+直行" @param laneSelectInfo 车道前景信息,其个数一定和车道背景信息一样,例如:@"255|0|0|0",表示选择了当前道路的第2、3、4三个直行车道。

◆ driveManager:updateBackupRoute:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateBackupRoute: (nullable NSArray< AMapNaviRoute * > *)  backupRoutes 
optional

多路线导航模式下的备选路线更新回调, 注意:此函数只有在 driveManager 设置了多路线导航模式才会回调. since 6.3.0

Parameters
driveManager驾车导航管理类
backupRoutes备选路线信息数组, 参考 AMapNaviRoute

◆ driveManager:updateCameraInfos:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateCameraInfos: (nullable NSArray< AMapNaviCameraInfo * > *)  cameraInfos 
optional

电子眼信息更新回调 since 5.0.0

Parameters
driveManager驾车导航管理类
cameraInfos电子眼信息,参考 AMapNaviCameraInfo

◆ driveManager:updateCongestionInfo:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateCongestionInfo: (nullable AMapNaviCongestionInfo *)  congestionInfo 
optional

前方拥堵区域信息的更新回调. since 7.5.0

Parameters
driveManager驾车导航管理类
congestionInfo拥堵区域信息, 参考 AMapNaviCongestionInfo 类,如果已通过该拥堵区域或者其不再拥堵时,congestionInfo会返回nil

◆ driveManager:updateCruiseCongestionInfo:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateCruiseCongestionInfo: (AMapNaviCruiseCongestionInfo *)  congestionInfo 
optional

巡航状态下的拥堵区域信息. 该更新回调只有在detectedMode开启后有效 since 6.7.0

Parameters
driveManager驾车导航管理类
congestionInfo巡航拥堵信息, 参考 AMapNaviCruiseCongestionInfo 类, 当前方无拥堵信息时, congestionInfo 的值为 nil .

◆ driveManager:updateCruiseElecCameraInfos:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateCruiseElecCameraInfos: (NSArray< AMapNaviTrafficFacilityInfo * > *)  cameraInfos 
optional

巡航时自车前方电子眼信息.该更新回调只有在detectedMode开启后有效 since 6.7.0

Parameters
driveManager驾车导航管理类
cameraInfos电子眼信息数组,参考 AMapNaviTrafficFacilityInfo

◆ driveManager:updateCruiseInfo:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateCruiseInfo: (nullable AMapNaviCruiseInfo *)  cruiseInfo 
optional

巡航信息更新回调.该更新回调只有在detectedMode开启后有效

Parameters
driveManager驾车导航管理类
cruiseInfo巡航信息,参考 AMapNaviCruiseInfo

◆ driveManager:updateIntervalCameraWithPositionState:startInfo:endInfo:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateIntervalCameraWithPositionState: (AMapNaviIntervalCameraPositionState state
startInfo: (nullable AMapNaviCameraInfo *)  startInfo
endInfo: (nullable AMapNaviCameraInfo *)  endInfo 
optional

区间电子眼信息更新回调 since 6.0.0

Parameters
driveManager驾车导航管理类
state自车位置和区间测速电子眼路段的位置关系,参考 AMapNaviIntervalCameraPositionState 类
startInfo电子眼信息,参考 AMapNaviCameraInfo
endInfo电子眼信息,参考 AMapNaviCameraInfo

◆ driveManager:updateNaviInfo:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateNaviInfo: (nullable AMapNaviInfo *)  naviInfo 
optional

导航信息更新回调

Parameters
driveManager驾车导航管理类
naviInfo导航信息,参考 AMapNaviInfo

◆ driveManager:updateNaviLocation:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateNaviLocation: (nullable AMapNaviLocation *)  naviLocation 
optional

自车位置更新回调 (since 5.0.0,模拟导航和实时导航的自车位置更新都会走此回调)

Parameters
driveManager驾车导航管理类
naviLocation自车位置信息,参考 AMapNaviLocation

◆ driveManager:updateNaviMode:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateNaviMode: (AMapNaviMode naviMode 
optional

导航模式更新回调. 从5.3.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviDriveManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态.

Parameters
driveManager驾车导航管理类
naviMode导航模式,参考 AMapNaviMode 值

◆ driveManager:updateNaviRoute:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateNaviRoute: (nullable AMapNaviRoute *)  naviRoute 
optional

路径信息更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.

Parameters
driveManager驾车导航管理类
naviRoute路径信息,参考 AMapNaviRoute

◆ driveManager:updateNaviRouteID:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateNaviRouteID: (NSInteger)  naviRouteID 
optional

路径ID更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.

Parameters
driveManager驾车导航管理类
naviRouteID导航路径ID

◆ driveManager:updateNextTurnIconImage:nextTurnIconType:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateNextTurnIconImage: (nullable UIImage *)  turnIconImage
nextTurnIconType: (AMapNaviIconType turnIconType 
optional

导航中相对于当前转向图标,下一个转向图标更新回调 since 6.9.0

Parameters
driveManager驾车导航管理类
turnIconImage导航段下一个路口转向图标, 默认大小为(255,255)
turnIconType导航段下一个转向图标类型,参考 AMapNaviIconType 类

◆ driveManager:updateParallelRoadStatus:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateParallelRoadStatus: (nullable AMapNaviParallelRoadStatus *)  parallelRoadStatus 
optional

通知当前是否可以进行平行道路切换,包括主路、辅路以及高架桥上、高架桥下. since 5.3.0

Parameters
driveManager驾车导航管理类
parallelRoadStatus平行道路信息,参考 AMapNaviParallelRoadStatus

◆ driveManager:updateServiceAreaInfos:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateServiceAreaInfos: (nullable NSArray< AMapNaviServiceAreaInfo * > *)  serviceAreaInfos 
optional

服务区和收费站信息更新回调 since 5.0.0

Parameters
driveManager驾车导航管理类
serviceAreaInfos服务区信息,参考 AMapNaviServiceAreaInfo

◆ driveManager:updateTrafficFacilities:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateTrafficFacilities: (nullable NSArray< AMapNaviTrafficFacilityInfo * > *)  trafficFacilities 
optional

巡航道路设施信息更新回调.该更新回调只有在detectedMode开启后有效

Parameters
driveManager驾车导航管理类
trafficFacilities道路设施信息数组,参考 AMapNaviTrafficFacilityInfo

◆ driveManager:updateTrafficStatus:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateTrafficStatus: (nullable NSArray< AMapNaviTrafficStatus * > *)  trafficStatus 
optional

路况光柱信息更新回调

Parameters
driveManager驾车导航管理类
trafficStatus路况光柱信息数组,参考 AMapNaviTrafficStatus

◆ driveManager:updateTurnIconImage:turnIconType:

- (void) driveManager: (AMapNaviDriveManager *)  driveManager
updateTurnIconImage: (nullable UIImage *)  turnIconImage
turnIconType: (AMapNaviIconType turnIconType 
optional

导航中的转向图标更新回调 since 6.2.0

Parameters
driveManager驾车导航管理类
turnIconImage导航段转向图标, 默认大小为(255,255)
turnIconType导航段转向图标类型,参考 AMapNaviIconType 类

◆ driveManagerHideCrossImage:

- (void) driveManagerHideCrossImage: (AMapNaviDriveManager *)  driveManager
optional

需要隐藏路口放大图时的回调。

Parameters
driveManager驾车导航管理类

◆ driveManagerHideLaneInfo:

- (void) driveManagerHideLaneInfo: (AMapNaviDriveManager *)  driveManager
optional

需要隐藏车道信息时的回调

Parameters
driveManager驾车导航管理类

The documentation for this protocol was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。