高德地图SDK(导航)  V11.1.000
<AMapNaviDriveViewDelegate> Protocol Reference

#import <AMapNaviDriveView.h>

Inheritance diagram for <AMapNaviDriveViewDelegate>:

Instance Methods

(void) - driveViewCloseButtonClicked:
 导航界面关闭按钮点击时的回调函数 Callback function when the close button is clicked on the navigation interface More...
 
(void) - driveViewMoreButtonClicked:
 导航界面更多按钮点击时的回调函数 Callback function when the more button is clicked on the navigation interface More...
 
(void) - driveViewTrunIndicatorViewTapped:
 导航界面转向指示View点击时的回调函数 Callback function when the turn indicator View is clicked in the navigation interface More...
 
(void) - driveView:didChangeShowMode:
 导航界面显示模式改变后的回调函数 Callback function after the display mode of the navigation interface changes More...
 
(void) - driveView:didChangeTrackingMode:
 驾车导航界面跟随模式改变后的回调函数. since 6.2.0 Callback function after the follow mode of the navigation interface changes More...
 
(void) - driveViewTrackingModeAnimationFinished:
 驾车导航界面跟随模式改变动画执行完成的回调函数,可在此函数中设置地图状态。注意,只有在showMode为AMapNaviDriveViewShowModeNormal时才会回调。 since 10.0.2 Callback function executed after the animation of the driving navigation interface's following mode change is completed, where the map state can be set within this function. Note that the callback is only triggered when showMode is AMapNaviDriveViewShowModeNormal. More...
 
(void) - driveView:didChangeOrientation:
 驾车导航界面横竖屏切换后的回调函数. since 6.2.0 Callback function after switching between landscape and portrait modes in the navigation interface 如果使用行前功能,行前只支持竖屏,横竖屏切换需要用户请使用Controller相关接口自动行判断。 If using the pre line function, the pre line only supports vertical screen, and switching between horizontal and vertical screens requires users to use the Controller's relevant interface to automatically determine. More...
 
(void) - driveView:didChangeDayNightType:
 驾车导航界面白天黑夜模式切换后的回调函数. since 6.2.0 Callback function after switching between day and night modes in the navigation interface More...
 
(UIEdgeInsets) - driveViewEdgePadding:
 在showUIElements为NO时,驾车导航界面需要实时的取得可视区域,比如切换成全览时、横竖屏切换时、动态计算地图的缩放级别时. 注意:此回调只在showUIElements为NO时,才会调用且比较频繁,在获取EdgePadding时请勿进行大量的计算. since 6.2.0 When showUIElements is NO, the driving navigation interface needs to obtain the visible area in real time, such as when switching to full view, when switching between landscape and portrait, and when dynamically calculating the zoom level of the map. Note: This callback is only called and relatively frequent when showUIElements is NO, please avoid heavy calculations when obtaining EdgePadding. More...
 
(void) - driveViewOnSearchBarBackClicked:
 路线规划状态返回按钮点击 Click the route planning status return button More...
 
(void) - driveView:onDriveStrategyChanged:
 设置页面\路径规划页 驾车路径规划策略改变调用此方法 Set Page Path Planning Page Driving Path Planning Strategy Change Call this method More...
 
(void) - driveView:didChangeBroadcastType:
 导航语音播报模式设置改变的回调函数. Callback function for changes in navigation voice broadcast mode settings. More...
 
(void) - driveView:didChangeAutoZoomMapLevel:
 比例尺智能缩放设置改变的回调函数. The callback function for changing the intelligent scaling setting of the scale bar More...
 
(void) - driveView:didChangeMapViewModeType:
 导航界面地图的日夜模式设置改变的回调函数. The callback function for changing the day and night mode settings of the navigation interface map More...
 
(void) - driveView:didChangeShowEagleMap:
 导航界面地图的鹰眼地图设置改变的回调函数. The callback function for changing the eagle eye map settings on the navigation interface map More...
 
(void) - driveView:didChangeToState:
 导航界面页面状态变化 Navigation interface page status changes More...
 
(void) - driveView:asyncScreenShot:state:
 
(void) - driveView:onInputChange:callBack:
 路线规划页面起终点输入内容变化,如果callback返回的tips 为空或者个数为 0 展示 提示:“查无结果” 实现此接口后,内部不再发起inputTip网络请求,使用callback返回的结果展示输入提示 The start and end point input content changes on the route planning page. If the tips returned by the callback are empty or the count is 0, display the prompt: 'No results found' After implementing this interface, the inputTip network request will no longer be initiated internally, and the input prompt will be displayed using the result returned by callback More...
 
(void) - driveView:updateRemainServiceAreaDetailInfos:
 导航界面的服务区卡片View点击时触发的剩余服务区列表回调函数 The callback function for the remaining service area list triggered when clicking on the service area card View in the navigation interface More...
 
(void) - driveView:onRouteHighlightChange:triggerType:
 导航高亮(主)路线更新 Navigation highlight (main) route update More...
 

Method Documentation

◆ driveView:asyncScreenShot:state:

- (void) driveView: (AMapNaviDriveView *)  driveView
asyncScreenShot: (UIImage *)  image
state: (NSInteger)  state 
optional

异步截图代理回调 Asynchronous screenshot agent callback

  • Parameters:
    • driveView: 导航自定义View Customize Navigation View
    • image: 返回截屏的图片 Return the screenshot image
    • state: 0载入不完整,1完整 0 incomplete loading, 1 complete

◆ driveView:didChangeAutoZoomMapLevel:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeAutoZoomMapLevel: (BOOL)  autoZoomMapLevel 
optional

比例尺智能缩放设置改变的回调函数. The callback function for changing the intelligent scaling setting of the scale bar

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

◆ driveView:didChangeBroadcastType:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeBroadcastType: (AMapNaviCompositeBroadcastType)  type 
optional

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

Parameters
type参考 AMapNaviCompositeBroadcastType . Refer to AMapNaviCompositeBroadcastType.
Since
10.0.820

◆ driveView:didChangeDayNightType:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeDayNightType: (BOOL)  showStandardNightType 
optional

驾车导航界面白天黑夜模式切换后的回调函数. since 6.2.0 Callback function after switching between day and night modes in the navigation interface

Parameters
driveView驾车导航界面 Driving navigation interface
showStandardNightType是否为黑夜模式 Is it in night mode

◆ driveView:didChangeMapViewModeType:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeMapViewModeType: (AMapNaviViewMapModeType type 
optional

导航界面地图的日夜模式设置改变的回调函数. The callback function for changing the day and night mode settings of the navigation interface map

Parameters
type参考 AMapNaviViewMapModeType . Refer to AMapNaviViewMapModeType .
Since
10.0.820

◆ driveView:didChangeOrientation:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeOrientation: (BOOL)  isLandscape 
optional

驾车导航界面横竖屏切换后的回调函数. since 6.2.0 Callback function after switching between landscape and portrait modes in the navigation interface 如果使用行前功能,行前只支持竖屏,横竖屏切换需要用户请使用Controller相关接口自动行判断。 If using the pre line function, the pre line only supports vertical screen, and switching between horizontal and vertical screens requires users to use the Controller's relevant interface to automatically determine.

Parameters
driveView驾车导航界面 Driving navigation interface
isLandscape是否是横屏 Is it in landscape mode

◆ driveView:didChangeShowEagleMap:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeShowEagleMap: (BOOL)  show 
optional

导航界面地图的鹰眼地图设置改变的回调函数. The callback function for changing the eagle eye map settings on the navigation interface map

Parameters
showYES:鹰眼地图显示,NO:不显示 YES: Eagle Eye map display, NO: Not displayed
Since
10.0.820

◆ driveView:didChangeShowMode:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeShowMode: (AMapNaviDriveViewShowMode showMode 
optional

导航界面显示模式改变后的回调函数 Callback function after the display mode of the navigation interface changes

Parameters
driveView驾车导航界面 Driving navigation interface
showMode显示模式 Display mode

◆ driveView:didChangeToState:

- (void) driveView: (AMapNaviDriveView *)  view
didChangeToState: (AMapNaviDriveViewState state 
optional

导航界面页面状态变化 Navigation interface page status changes

Parameters
AMapNaviDriveViewState
Since
10.0.820

◆ driveView:didChangeTrackingMode:

- (void) driveView: (AMapNaviDriveView *)  driveView
didChangeTrackingMode: (AMapNaviViewTrackingMode trackMode 
optional

驾车导航界面跟随模式改变后的回调函数. since 6.2.0 Callback function after the follow mode of the navigation interface changes

Parameters
driveView驾车导航界面 Driving navigation interface
trackMode跟随模式 Follow mode

◆ driveView:onDriveStrategyChanged:

- (void) driveView: (AMapNaviDriveView *)  driveView
onDriveStrategyChanged: (AMapNaviDrivingStrategy driveStrategy 
optional

设置页面\路径规划页 驾车路径规划策略改变调用此方法 Set Page Path Planning Page Driving Path Planning Strategy Change Call this method

Parameters
driveView驾车导航界面 Driving navigation interface
driveStrategy驾车路径规划策略,参考 AMapNaviDrivingStrategy . Driving route planning strategy, refer to AMapNaviDrivingStrategy.
Since
10.0.820

◆ driveView:onInputChange:callBack:

- (void) driveView: (AMapNaviDriveView *)  driveView
onInputChange: (NSString *)  inputText
callBack: (void(^)(NSArray< AMapNaviInputTip * > *tips))  callback 
optional

路线规划页面起终点输入内容变化,如果callback返回的tips 为空或者个数为 0 展示 提示:“查无结果” 实现此接口后,内部不再发起inputTip网络请求,使用callback返回的结果展示输入提示 The start and end point input content changes on the route planning page. If the tips returned by the callback are empty or the count is 0, display the prompt: 'No results found' After implementing this interface, the inputTip network request will no longer be initiated internally, and the input prompt will be displayed using the result returned by callback

Parameters
driveViewAMapNaviDriveView inputText: 输入框内容 Input box content callback: tips数组建议一次返回10条以内数据 The tips array suggests returning no more than 10 items at a time
Since
10.0.921

◆ driveView:onRouteHighlightChange:triggerType:

- (void) driveView: (AMapNaviDriveView *)  driveView
onRouteHighlightChange: (NSInteger)  pathId
triggerType: (NSInteger)  triggerType 
optional

导航高亮(主)路线更新 Navigation highlight (main) route update

Parameters
highLightPathId高亮(主)路线ID Highlight (Primary) Route ID
triggerType触发换路的类型 0:自动切换(自动走上备选路) 1:手动点击路线换路(手动点击路线换路/手动点击路线气泡换路) Route Switch Trigger Types: 0: Automatic Switch (Automatically take the alternative route), 1: Manual Click Route Switch (Manual route switch by clicking the route / Manual route switch by clicking the route bubble).

◆ driveView:updateRemainServiceAreaDetailInfos:

- (void) driveView: (AMapNaviDriveView *)  driveView
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
driveView驾车导航界面 Driving navigation interface
remainServiceAreaDetails剩余服务区列表详情 Details of the remaining service area list
Since
10.2.0

◆ driveViewCloseButtonClicked:

- (void) driveViewCloseButtonClicked: (AMapNaviDriveView *)  driveView
optional

导航界面关闭按钮点击时的回调函数 Callback function when the close button is clicked on the navigation interface

Parameters
driveView驾车导航界面 Driving navigation interface

◆ driveViewEdgePadding:

- (UIEdgeInsets) driveViewEdgePadding: (AMapNaviDriveView *)  driveView
optional

在showUIElements为NO时,驾车导航界面需要实时的取得可视区域,比如切换成全览时、横竖屏切换时、动态计算地图的缩放级别时. 注意:此回调只在showUIElements为NO时,才会调用且比较频繁,在获取EdgePadding时请勿进行大量的计算. since 6.2.0 When showUIElements is NO, the driving navigation interface needs to obtain the visible area in real time, such as when switching to full view, when switching between landscape and portrait, and when dynamically calculating the zoom level of the map. Note: This callback is only called and relatively frequent when showUIElements is NO, please avoid heavy calculations when obtaining EdgePadding.

Parameters
driveView驾车导航界面 Driving navigation interface
Returns
如(100, 50, 80, 60)表示的是:driveView.bounds 上边留出100px,左边留出50px,底部留出80px,右边留出60px后的区域为可视区域,一般EdgePadding的值由用户的界面布局决定. For example, (100, 50, 80, 60) means: the area left after leaving 100px at the top, 50px at the left, 80px at the bottom, and 60px at the right of walkView.bounds is the visible area. The value of EdgePadding is generally determined by the user's interface layout.

◆ driveViewMoreButtonClicked:

- (void) driveViewMoreButtonClicked: (AMapNaviDriveView *)  driveView
optional

导航界面更多按钮点击时的回调函数 Callback function when the more button is clicked on the navigation interface

Parameters
driveView驾车导航界面 Driving navigation interface

◆ driveViewOnSearchBarBackClicked:

- (void) driveViewOnSearchBarBackClicked: (AMapNaviDriveView *)  driveView
optional

路线规划状态返回按钮点击 Click the route planning status return button

Parameters
driveView驾车导航界面 Driving navigation interface
Since
10.0.820

◆ driveViewTrackingModeAnimationFinished:

- (void) driveViewTrackingModeAnimationFinished: (AMapNaviDriveView *)  driveView
optional

驾车导航界面跟随模式改变动画执行完成的回调函数,可在此函数中设置地图状态。注意,只有在showMode为AMapNaviDriveViewShowModeNormal时才会回调。 since 10.0.2 Callback function executed after the animation of the driving navigation interface's following mode change is completed, where the map state can be set within this function. Note that the callback is only triggered when showMode is AMapNaviDriveViewShowModeNormal.

Parameters
driveView驾车导航界面 Driving navigation interface

◆ driveViewTrunIndicatorViewTapped:

- (void) driveViewTrunIndicatorViewTapped: (AMapNaviDriveView *)  driveView
optional

导航界面转向指示View点击时的回调函数 Callback function when the turn indicator View is clicked in the navigation interface

Parameters
driveView驾车导航界面 Driving navigation interface

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