高德地图SDK(导航) V11.2.0501

Loading...
Searching...
No Matches
Instance Methods | List of all members
<AMapNaviCompositeManagerDelegate> Protocol Reference

`#include <AMapNaviCompositeManager.h>`

Inheritance diagram for <AMapNaviCompositeManagerDelegate>:

## Instance Methods
(void) | - compositeManager:error:
| 发生错误时,会调用此方法 This method is called when an error occurs
(void) | - compositeManagerOnCalculateRouteSuccess:
| 算路成功后的回调函数, 路径规划页面的算路、导航页面的重算等成功后均会调用此方法 The callback function after successful route calculation, which will be called after successful route calculation on the route planning page or re-calculation on the navigation page
(void) | - compositeManager:onCalculateRouteSuccessWithType:
| 算路成功后的回调函数. since 5.5.0 The callback function after successful route calculation
(void) | - compositeManager:onCalculateRouteFailure:
| 算路失败后的回调函数,路径规划页面的算路、导航页面的重算等失败后均会调用此方法 Callback function after route calculation failure, this method will be called when route calculation on the route planning page or re-calculation on the navigation page fails
(void) | - compositeManager:didStartNavi:
| 开始导航的回调函数 Callback function to start navigation
(BOOL) | - compositeManagerIsNaviSoundPlaying:
| SDK需要实时的获取是否正在进行导航信息播报，以便SDK内部控制 "导航播报信息回调函数" 的触发时机，避免出现下一句话打断前一句话的情况. 如果需要自定义"导航语音播报"功能，必须实现此代理 The SDK needs to obtain in real time whether navigation information is being broadcast, so that the SDK can internally control the triggering timing of the "navigation broadcast information callback function" to avoid the next sentence interrupting the previous one. If you need to customize the "navigation voice broadcast" function, this delegate must be implemented.
(void) | - compositeManager:playNaviSoundString:soundStringType:
| 导航播报信息回调函数,此回调函数需要和compositeManagerIsNaviSoundPlaying:配合使用. 如果需要自定义"导航语音播报"功能，必须实现此代理 Navigation broadcast information callback function, this callback function needs to be used in conjunction with compositeManagerIsNaviSoundPlaying:. If you need to customize the "navigation voice broadcast" function, you must implement this delegate
(void) | - compositeManagerStopPlayNaviSound:
| 停止导航语音播报的回调函数，当导航SDK需要停止外部语音播报时，会调用此方法. 如果需要自定义"导航语音播报"功能，必须实现此代理 The callback function to stop navigation voice broadcast. This method will be called when the navigation SDK needs to stop external voice broadcast. If you need to customize the "navigation voice broadcast" function, this delegate must be implemented
(void) | - compositeManager:updateNaviLocation:
| 当前位置更新回调(无论是否在导航中，只要当前位置有更新就会回调) Current location update callback (triggered whenever the current location is updated, regardless of whether in navigation mode)
(void) | - compositeManager:didChangeDayNightType:
| 驾车导航页面白天夜间模式切换回调 since 6.7.0 Driving navigation page day/night mode switch callback
(void) | - compositeManager:didArrivedDestination:
| 导航到达目的地后的回调函数 Callback function after navigation reaches the destination
(void) | - compositeManager:didBackwardAction:
| 导航组件页面回退或者退出导航组件时会调用此函数 since 5.5.0 This function will be called when the navigation component page goes back or exits the navigation component
(void) | - compositeManager:onDriveStrategyChanged:
| 每次进入导航组件时和驾车路径规划策略改变均会调用此方法 since 6.1.0 This method will be called every time entering the navigation component and when the driving route planning strategy changes
(void) | - compositeManager:onArrivedWayPoint:
| 导航到达某个途经点的回调函数 since 6.1.0 Callback function when navigation reaches a waypoint
(void) | - compositeManagerDidChangeMapViewModeType:
| 导航界面地图的日夜模式设置改变的回调函数. since 7.1.0 Callback function for day-night mode setting changes in the navigation interface map
(void) | - compositeManagerDidChangeBroadcastType:
| 导航语音播报模式设置改变的回调函数. since 7.1.0 Callback function for navigation voice broadcast mode setting changes
(void) | - compositeManagerDidChangeTrackingMode:
| 导航界面跟随模式设置改变的回调函数. since 7.1.0 Callback function for navigation interface follow mode setting changes
(void) | - compositeManagerDidChangeAutoZoomMapLevel:
| 比例尺智能缩放设置改变的回调函数. since 7.1.0 Callback function for changes in the intelligent scale zoom setting
(void) | - compositeManager:updateRemainServiceAreaDetailInfos:
| 导航界面的服务区卡片View点击时触发的剩余服务区列表回调函数 The callback function for the remaining service area list triggered when clicking on the service area card View in the navigation interface

## Detailed Description

AMapNaviCompositeManagerDelegate 协议 since 5.1.0 AMapNaviCompositeManagerDelegate Protocol since 5.1.0

## Method Documentation

## ◆ compositeManager:didArrivedDestination:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
didArrivedDestination: |  | (AMapNaviMode) | naviMode
| optional

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

Parameters

  compositeManager | 导航组件类 Navigation component class
  naviMode | 导航类型，参考 AMapNaviMode . Navigation type, refer to AMapNaviMode

## ◆ compositeManager:didBackwardAction:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
didBackwardAction: |  | (AMapNaviCompositeVCBackwardActionType) | backwardActionType
| optional

导航组件页面回退或者退出导航组件时会调用此函数 since 5.5.0 This function will be called when the navigation component page goes back or exits the navigation component

Parameters

  compositeManager | 导航组件类 Navigation component class
  backwardActionType | 导航组件页面回退的动作类型，参考 AMapNaviCompositeVCBackwardActionType . The action type of the navigation component page going back, refer to AMapNaviCompositeVCBackwardActionType

## ◆ compositeManager:didChangeDayNightType:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
didChangeDayNightType: |  | (BOOL) | showStandardNightType
| optional

驾车导航页面白天夜间模式切换回调 since 6.7.0 Driving navigation page day/night mode switch callback

Parameters

  compositeManager | 导航组件类 Navigation component class
  showStandardNightType | 是否为夜间模式,YES 表示夜间模式，NO 表示白天模式 Whether it is night mode, YES indicates night mode, NO indicates day mode

## ◆ compositeManager:didStartNavi:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
didStartNavi: |  | (AMapNaviMode) | naviMode
| optional

开始导航的回调函数 Callback function to start navigation

Parameters

  compositeManager | 导航组件类 Navigation component class
  naviMode | 导航类型，参考 AMapNaviMode . Navigation type, refer to AMapNaviMode

## ◆ compositeManager:error:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
error: |  | (NSError *_Nonnull) | error
| optional

发生错误时,会调用此方法 This method is called when an error occurs

Parameters

  compositeManager | 导航组件类 Navigation component class
  error | 错误信息 Error message

## ◆ compositeManager:onArrivedWayPoint:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
onArrivedWayPoint: |  | (int) | wayPointIndex
| optional

导航到达某个途经点的回调函数 since 6.1.0 Callback function when navigation reaches a waypoint

Parameters

  compositeManager | 导航组件类 Navigation component class
  wayPointIndex | 到达途径点的编号，标号从0开始. 注意：如果导航过程进行了路径重算(包含偏航、手动刷新等)，wayPointIndex会重新从0开始计数 The index of the reached waypoint, starting from 0. Note: If the route is recalculated during navigation (including deviation, manual refresh, etc.), wayPointIndex will restart counting from 0

## ◆ compositeManager:onCalculateRouteFailure:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
onCalculateRouteFailure: |  | (NSError *_Nonnull) | error
| optional

算路失败后的回调函数,路径规划页面的算路、导航页面的重算等失败后均会调用此方法 Callback function after route calculation failure, this method will be called when route calculation on the route planning page or re-calculation on the navigation page fails

Parameters

  compositeManager | 导航组件类 Navigation component class
  error | 错误信息,error.code参考 AMapNaviCalcRouteState . Error message, error.code refer to AMapNaviCalcRouteState.

## ◆ compositeManager:onCalculateRouteSuccessWithType:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
onCalculateRouteSuccessWithType: |  | (AMapNaviRoutePlanType) | type
| optional

算路成功后的回调函数. since 5.5.0 The callback function after successful route calculation

Parameters

  compositeManager | 导航组件类 Navigation component class
  type | 路径规划类型，参考 AMapNaviRoutePlanType . Route planning type, refer to AMapNaviRoutePlanType

## ◆ compositeManager:onDriveStrategyChanged:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
onDriveStrategyChanged: |  | (AMapNaviDrivingStrategy) | driveStrategy
| optional

每次进入导航组件时和驾车路径规划策略改变均会调用此方法 since 6.1.0 This method will be called every time entering the navigation component and when the driving route planning strategy changes

Parameters

  compositeManager | 导航组件类 Navigation component class
  driveStrategy | 驾车路径规划策略，参考 AMapNaviDrivingStrategy . Driving route planning strategy, refer to AMapNaviDrivingStrategy

## ◆ compositeManager:playNaviSoundString:soundStringType:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
playNaviSoundString: |  | (NSString *_Nullable) | soundString
soundStringType: |  | (AMapNaviSoundType) | soundStringType
| optional

导航播报信息回调函数,此回调函数需要和compositeManagerIsNaviSoundPlaying:配合使用. 如果需要自定义"导航语音播报"功能，必须实现此代理 Navigation broadcast information callback function, this callback function needs to be used in conjunction with compositeManagerIsNaviSoundPlaying:. If you need to customize the "navigation voice broadcast" function, you must implement this delegate

Parameters

  compositeManager | 导航组件类 Navigation component 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

## ◆ compositeManager:updateNaviLocation:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
updateNaviLocation: |  | (AMapNaviLocation *_Nullable) | naviLocation
| optional

当前位置更新回调(无论是否在导航中，只要当前位置有更新就会回调) Current location update callback (triggered whenever the current location is updated, regardless of whether in navigation mode)

Parameters

  compositeManager | 导航组件类 Navigation component class
  naviLocation | 当前位置信息,参考 AMapNaviLocation 类 Current location information, refer to AMapNaviLocation class

## ◆ compositeManager:updateRemainServiceAreaDetailInfos:

- (void) compositeManager: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager
updateRemainServiceAreaDetailInfos: |  | (nullable NSArray< AMapNaviServiceAreaDetailInfo * > *) | remainServiceAreaDetails
| optional

导航界面的服务区卡片View点击时触发的剩余服务区列表回调函数 The callback function for the remaining service area list triggered when clicking on the service area card View in the navigation interface

Parameters

  compositeManager | 导航组件类 Navigation Component Class
  remainServiceAreaDetails | 剩余服务区列表详情 Details of the remaining service area list

Since
  10.2.0

## ◆ compositeManagerDidChangeAutoZoomMapLevel:

- (void) compositeManagerDidChangeAutoZoomMapLevel: |  | (BOOL) | autoZoomMapLevel |
| optional

比例尺智能缩放设置改变的回调函数. since 7.1.0 Callback function for changes in the intelligent scale zoom setting

Parameters

  autoZoomMapLevel | 锁车模式下是否为了预见下一导航动作自动缩放地图 Whether to automatically zoom the map in car-lock mode to anticipate the next navigation action

## ◆ compositeManagerDidChangeBroadcastType:

- (void) compositeManagerDidChangeBroadcastType: |  | (AMapNaviCompositeBroadcastType) | type |
| optional

导航语音播报模式设置改变的回调函数. since 7.1.0 Callback function for navigation voice broadcast mode setting changes

Parameters

  type | 参考 AMapNaviCompositeBroadcastType . Refer to AMapNaviCompositeBroadcastType.

## ◆ compositeManagerDidChangeMapViewModeType:

- (void) compositeManagerDidChangeMapViewModeType: |  | (AMapNaviViewMapModeType) | type |
| optional

导航界面地图的日夜模式设置改变的回调函数. since 7.1.0 Callback function for day-night mode setting changes in the navigation interface map

Parameters

  type | 参考 AMapNaviViewMapModeType . Refer to AMapNaviViewMapModeType.

## ◆ compositeManagerDidChangeTrackingMode:

- (void) compositeManagerDidChangeTrackingMode: |  | (AMapNaviViewTrackingMode) | mode |
| optional

导航界面跟随模式设置改变的回调函数. since 7.1.0 Callback function for navigation interface follow mode setting changes

Parameters

  mode | 参考 AMapNaviViewTrackingMode . Refer to AMapNaviViewTrackingMode.

## ◆ compositeManagerIsNaviSoundPlaying:

- (BOOL) compositeManagerIsNaviSoundPlaying: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager |
| optional

SDK需要实时的获取是否正在进行导航信息播报，以便SDK内部控制 "导航播报信息回调函数" 的触发时机，避免出现下一句话打断前一句话的情况. 如果需要自定义"导航语音播报"功能，必须实现此代理 The SDK needs to obtain in real time whether navigation information is being broadcast, so that the SDK can internally control the triggering timing of the "navigation broadcast information callback function" to avoid the next sentence interrupting the previous one. If you need to customize the "navigation voice broadcast" function, this delegate must be implemented.

Parameters

  compositeManager | 导航组件类 Navigation component class

Returns
  返回当前是否正在进行导航信息播报,如一直返回YES，"导航播报信息回调函数"就一直不会触发，如一直返回NO，就会出现语句打断情况，所以请根据实际情况返回。 Returns whether navigation information is currently being broadcast. If it always returns YES, the "navigation broadcast callback function" will never be triggered. If it always returns NO, there will be interruption issues. Therefore, please return based on the actual situation.

## ◆ compositeManagerOnCalculateRouteSuccess:

- (void) compositeManagerOnCalculateRouteSuccess: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager |
| optional

算路成功后的回调函数, 路径规划页面的算路、导航页面的重算等成功后均会调用此方法 The callback function after successful route calculation, which will be called after successful route calculation on the route planning page or re-calculation on the navigation page

Parameters

  compositeManager | 导航组件类 Navigation component class

## ◆ compositeManagerStopPlayNaviSound:

- (void) compositeManagerStopPlayNaviSound: |  | (AMapNaviCompositeManager *_Nonnull) | compositeManager |
| optional

停止导航语音播报的回调函数，当导航SDK需要停止外部语音播报时，会调用此方法. 如果需要自定义"导航语音播报"功能，必须实现此代理 The callback function to stop navigation voice broadcast. This method will be called when the navigation SDK needs to stop external voice broadcast. If you need to customize the "navigation voice broadcast" function, this delegate must be implemented

Parameters

  compositeManager | 导航组件类 Navigation component class

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

- AMapNaviCompositeManager.h

© 2017 高德信息技术有限公司 版权所有，保留所有权利。