高德地图SDK(导航)  V11.3.300
<AMapNaviRideManagerDelegate> Protocol Reference

#import <AMapNaviRideManager.h>

Inheritance diagram for <AMapNaviRideManagerDelegate>:

Instance Methods

(void) - rideManager:error:
 发生错误时,会调用代理的此方法 When an error occurs, this method of the delegate will be called More...
 
(void) - rideManagerOnCalculateRouteSuccess:
 骑行路径规划成功后的回调函数 Callback function after successful cycling route planning More...
 
(void) - rideManagerOnCalculateRouteSuccess:calculateRouteResult:
 骑行路径规划成功后的回调函数。since 10.1.111 Callback function after successful cycling route planning More...
 
(void) - rideManager:onCalculateRouteFailure:
 骑行路径规划失败后的回调函数. 从6.1.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviRideManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态 Callback function after failed cycling route planning. Starting from version 6.1.0, the navigation SDK only notifies external parties of route calculation failure, and the SDK no longer executes the logic related to stopping navigation internally. Therefore, after the route calculation fails, the driveManager:updateNaviMode: callback will not be received. AMapNaviRideManager.naviMode will not switch to AMapNaviModeNone state, but will remain in AMapNaviModeGPS or AMapNaviModeEmulator state. More...
 
(void) - rideManager:onCalculateRouteFailure:calculateRouteResult:
 骑行路径规划失败后的回调函数. 从6.1.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviRideManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态。since 10.1.111 Callback function after failed cycling route planning. Starting from version 6.1.0, the navigation SDK only notifies external parties of route calculation failure, and the SDK no longer executes the logic related to stopping navigation internally. Therefore, after the route calculation fails, the driveManager:updateNaviMode: callback will not be received. AMapNaviRideManager.naviMode will not switch to AMapNaviModeNone state, but will remain in AMapNaviModeGPS or AMapNaviModeEmulator state. More...
 
(void) - rideManager:didStartNavi:
 启动导航后回调函数 Callback function after starting navigation More...
 
(void) - rideManager:didStopNavi:
 停止导航后回调函数. since 10.1.300 More...
 
(void) - rideManagerNeedRecalculateRouteForYaw:
 出现偏航需要重新计算路径时的回调函数.偏航后将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理. The callback function when a deviation occurs and the path needs to be recalculated. After the deviation, the path will be automatically replanned, and this method will notify you to perform additional processing before the automatic replanning. More...
 
(void) - rideManager:playNaviSoundString:soundStringType:
 导航播报信息回调函数 Navigation broadcast information callback function More...
 
(void) - rideManager:onTTSDrop:
 TTS播报被丢弃回调函数 Callback function when TTS text is dropped. More...
 
(void) - rideManagerDidEndEmulatorNavi:
 模拟导航到达目的地停止导航后的回调函数 Callback function after simulated navigation reaches the destination and stops navigation More...
 
(void) - rideManagerOnArrivedDestination:
 导航到达目的地后的回调函数 Callback function after navigation reaches the destination More...
 
(void) - rideManager:updateGPSSignalStrength:
 卫星定位信号强弱回调函数. since 7.4.0 Callback function for satellite positioning signal strength More...
 
(void) - rideManager:onArrivedWayPoint:
 骑行导航到达途径点的回调函数 since 9.3.5 Callback function when reaching a waypoint in cycling navigation More...
 
(void) - rideManager:onStartPlayPCMData:
 开始播放PCM数据回调函数 Callback function when starting to play PCM data More...
 
(void) - rideManager:onPlayPCMData:
 播放PCM数据回调函数 Callback function when playing PCM data More...
 
(void) - rideManager:onPCMDataFinished:
 PCM数据播放完成回调函数 Callback function when PCM data playback is finished. More...
 
(void) - rideManager:onPlaybackFinishedWithTaskId:soundType:text:audioOutputMode:
 播报播放完成回调函数。在SDK内部播放器播放完成后触发,表示该句播报真正播放结束(被打断也会回调); Callback function when broadcast playback is finished. Triggered after the SDK internal player actually finishes playing, indicating the sentence has really finished playing; different from the broadcast-content-delivery-finished callbacks, this callback indicates the playback has really ended, and is not called back when interrupted/stopped; More...
 

Method Documentation

◆ rideManager:didStartNavi:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
didStartNavi: (AMapNaviMode)  naviMode 
optional

启动导航后回调函数 Callback function after starting navigation

Parameters
rideManager骑行导航管理类 Cycling navigation management class
naviMode导航类型,参考AMapNaviMode Navigation type, refer to AMapNaviMode

◆ rideManager:didStopNavi:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
didStopNavi: (BOOL)  isStopped 
optional

停止导航后回调函数. since 10.1.300

Parameters
rideManager骑行导航管理类
isStopped是否停止导航成功

◆ rideManager:error:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
error: (NSError *)  error 
optional

发生错误时,会调用代理的此方法 When an error occurs, this method of the delegate will be called

Parameters
rideManager骑行导航管理类 Cycling navigation management class
error错误信息 Error message

◆ rideManager:onArrivedWayPoint:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onArrivedWayPoint: (int)  wayPointIndex 
optional

骑行导航到达途径点的回调函数 since 9.3.5 Callback function when reaching a waypoint in cycling navigation

Parameters
rideManager骑行导航管理类 Cycling navigation management class
wayPointIndex到达途径点的编号,编号从0开始,依次累加。 The index of the waypoint, starting from 0 and incrementing sequentially

◆ rideManager:onCalculateRouteFailure:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onCalculateRouteFailure: (NSError *)  error 
optional

骑行路径规划失败后的回调函数. 从6.1.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviRideManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态 Callback function after failed cycling route planning. Starting from version 6.1.0, the navigation SDK only notifies external parties of route calculation failure, and the SDK no longer executes the logic related to stopping navigation internally. Therefore, after the route calculation fails, the driveManager:updateNaviMode: callback will not be received. AMapNaviRideManager.naviMode will not switch to AMapNaviModeNone state, but will remain in AMapNaviModeGPS or AMapNaviModeEmulator state.

Parameters
rideManager骑行导航管理类 Cycling navigation management class
error错误信息,error.code参照AMapNaviCalcRouteState Error message, error.code refers to AMapNaviCalcRouteState.

◆ rideManager:onCalculateRouteFailure:calculateRouteResult:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onCalculateRouteFailure: (NSError *)  error
calculateRouteResult: (AMapNaviCalculateRouteResult *)  calculateRouteResult 
optional

骑行路径规划失败后的回调函数. 从6.1.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviRideManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态。since 10.1.111 Callback function after failed cycling route planning. Starting from version 6.1.0, the navigation SDK only notifies external parties of route calculation failure, and the SDK no longer executes the logic related to stopping navigation internally. Therefore, after the route calculation fails, the driveManager:updateNaviMode: callback will not be received. AMapNaviRideManager.naviMode will not switch to AMapNaviModeNone state, but will remain in AMapNaviModeGPS or AMapNaviModeEmulator state.

Parameters
rideManager骑行导航管理类 Cycling navigation management class
error错误信息,error.code参照AMapNaviCalcRouteState Error message, error.code refers to AMapNaviCalcRouteState.
calculateRouteResult算路结果,算路唯一标识在此对象中。 Routing result, the unique routing identifier is in this object

◆ rideManager:onPCMDataFinished:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onPCMDataFinished: (nonnull AMapNaviPCMTask *)  playTask 
optional

PCM数据播放完成回调函数 Callback function when PCM data playback is finished.

Parameters
rideManager骑行导航管理类 Cycling navigation management class
playTaskPCM播放任务对象 PCM play task object

◆ rideManager:onPlaybackFinishedWithTaskId:soundType:text:audioOutputMode:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onPlaybackFinishedWithTaskId: (NSInteger)  taskId
soundType: (AMapNaviSoundType)  soundType
text: (nullable NSString *)  text
audioOutputMode: (AMapNaviAudioOutputMode)  audioOutputMode 
optional

播报播放完成回调函数。在SDK内部播放器播放完成后触发,表示该句播报真正播放结束(被打断也会回调); Callback function when broadcast playback is finished. Triggered after the SDK internal player actually finishes playing, indicating the sentence has really finished playing; different from the broadcast-content-delivery-finished callbacks, this callback indicates the playback has really ended, and is not called back when interrupted/stopped;

Parameters
rideManager骑行导航管理类 Cycling navigation management class
taskId播放完成的PCM播报任务ID(audioOutputMode为AMapNaviAudioOutputModeSpecial时有效,否则为0) Task ID of the finished PCM broadcast task (valid when audioOutputMode is AMapNaviAudioOutputModeSpecial, otherwise 0)
soundType播报类型,参考AMapNaviSoundType(audioOutputMode为AMapNaviAudioOutputModeSpecial时有效,否则为AMapNaviSoundTypeDefault) Broadcast type, refer to AMapNaviSoundType (valid when audioOutputMode is AMapNaviAudioOutputModeSpecial, otherwise AMapNaviSoundTypeDefault)
text刚播放完成的文本内容(audioOutputMode为AMapNaviAudioOutputModeText时有效,否则为nil) The text content that just finished playing (valid when audioOutputMode is AMapNaviAudioOutputModeText, otherwise nil)
audioOutputMode播报模式:AMapNaviAudioOutputModeText为普通文本播报完成,AMapNaviAudioOutputModeSpecial为特色语音包播报完成 Audio output mode: AMapNaviAudioOutputModeText means regular text broadcast finished, AMapNaviAudioOutputModeSpecial means featured voice package broadcast finished

◆ rideManager:onPlayPCMData:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onPlayPCMData: (nonnull AMapNaviPCMTask *)  playTask 
optional

播放PCM数据回调函数 Callback function when playing PCM data

Parameters
rideManager骑行导航管理类 Cycling navigation management class
playTaskPCM数据信息对象 PCM data info object

◆ rideManager:onStartPlayPCMData:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onStartPlayPCMData: (nonnull AMapNaviPCMTask *)  playTask 
optional

开始播放PCM数据回调函数 Callback function when starting to play PCM data

Parameters
rideManager骑行导航管理类 Cycling navigation management class
playTaskPCM播放任务对象 PCM play task object

◆ rideManager:onTTSDrop:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
onTTSDrop: (nonnull AMapNaviTTSDropInfo *)  dropInfo 
optional

TTS播报被丢弃回调函数 Callback function when TTS text is dropped.

Parameters
rideManager骑行导航管理类 Cycling navigation management class
dropInfoTTS丢弃信息对象 TTS drop info object

◆ rideManager:playNaviSoundString:soundStringType:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
playNaviSoundString: (NSString *)  soundString
soundStringType: (AMapNaviSoundType)  soundStringType 
optional

导航播报信息回调函数 Navigation broadcast information callback function

Parameters
rideManager骑行导航管理类 Cycling navigation management class
soundString播报文字 Broadcast text
soundStringType播报类型,参考 AMapNaviSoundType. 注意:since 6.0.0 AMapNaviSoundType 只返回 AMapNaviSoundTypeDefault Broadcast type, refer to AMapNaviSoundType. Note: since 6.0.0 AMapNaviSoundType only returns AMapNaviSoundTypeDefault

◆ rideManager:updateGPSSignalStrength:

- (void) rideManager: (AMapNaviRideManager *)  rideManager
updateGPSSignalStrength: (AMapNaviGPSSignalStrength)  gpsSignalStrength 
optional

卫星定位信号强弱回调函数. since 7.4.0 Callback function for satellite positioning signal strength

Parameters
rideManager骑行导航管理类 Cycling navigation management class
gpsSignalStrength卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength . Satellite positioning signal strength type, refer to AMapNaviGPSSignalStrength.

◆ rideManagerDidEndEmulatorNavi:

- (void) rideManagerDidEndEmulatorNavi: (AMapNaviRideManager *)  rideManager
optional

模拟导航到达目的地停止导航后的回调函数 Callback function after simulated navigation reaches the destination and stops navigation

Parameters
rideManager骑行导航管理类 Cycling navigation management class

◆ rideManagerNeedRecalculateRouteForYaw:

- (void) rideManagerNeedRecalculateRouteForYaw: (AMapNaviRideManager *)  rideManager
optional

出现偏航需要重新计算路径时的回调函数.偏航后将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理. The callback function when a deviation occurs and the path needs to be recalculated. After the deviation, the path will be automatically replanned, and this method will notify you to perform additional processing before the automatic replanning.

Parameters
rideManager骑行导航管理类 Cycling navigation management class

◆ rideManagerOnArrivedDestination:

- (void) rideManagerOnArrivedDestination: (AMapNaviRideManager *)  rideManager
optional

导航到达目的地后的回调函数 Callback function after navigation reaches the destination

Parameters
rideManager骑行导航管理类 Cycling navigation management class

◆ rideManagerOnCalculateRouteSuccess:

- (void) rideManagerOnCalculateRouteSuccess: (AMapNaviRideManager *)  rideManager
optional

骑行路径规划成功后的回调函数 Callback function after successful cycling route planning

Parameters
rideManager骑行导航管理类 Cycling navigation management class

◆ rideManagerOnCalculateRouteSuccess:calculateRouteResult:

- (void) rideManagerOnCalculateRouteSuccess: (AMapNaviRideManager *)  rideManager
calculateRouteResult: (AMapNaviCalculateRouteResult *)  calculateRouteResult 
optional

骑行路径规划成功后的回调函数。since 10.1.111 Callback function after successful cycling route planning

Parameters
rideManager骑行导航管理类 Cycling navigation management class
calculateRouteResult算路结果,算路唯一标识在此对象中。 The route calculation result, the unique identifier of the route calculation is in this object

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