// // AMapNaviWalkDataRepresentable.h // AMapNaviKit // // Created by 刘博 on 16/1/13. // Copyright © 2016年 Amap. All rights reserved. // #import "AMapNaviCommonObj.h" NS_ASSUME_NONNULL_BEGIN @class AMapNaviInfo; @class AMapNaviRoute; @class AMapNaviLocation; @class AMapNaviStatisticsInfo; @class AMapNaviWalkManager; /** * @brief AMapNaviWalkDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviWalkManager 的addDataRepresentative:方法进行注册,便可获取导航过程中的导航数据更新. * AMapNaviWalkDataRepresentable protocol. Instance objects can implement this protocol and register it through the addDataRepresentative: method of AMapNaviWalkManager to obtain navigation data updates during the navigation process. * 可以根据不同需求,选取使用特定的数据进行导航界面自定义. * The navigation interface can be customized by selecting specific data according to different requirements. * AMapNaviWalkView 即通过该协议实现导航过程展示.也可以依据导航数据的更新进行其他的逻辑处理. * AMapNaviWalkView displays the navigation process through this protocol. Other logical processing can also be performed based on updates to navigation data. */ @protocol AMapNaviWalkDataRepresentable @optional /** * @brief 导航模式更新回调 * Navigation mode update callback * @param walkManager 步行导航管理类 * Walking navigation management class * @param naviMode 导航模式,参考 AMapNaviMode 值 * Navigation mode, refer to AMapNaviMode value */ - (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviMode:(AMapNaviMode)naviMode; /** * @brief 路径ID更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用. * Route ID update callback. Note: Please do not call the -selectNaviRouteWithRouteID: interface in this callback, otherwise it will cause an infinite loop call. * @param walkManager 步行导航管理类 * Walking navigation management class * @param naviRouteID 导航路径ID * Navigation Path ID */ - (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviRouteID:(NSInteger)naviRouteID; /** * @brief 路径信息更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用. * Path Information Update Callback. Note: Please do not call the -selectNaviRouteWithRouteID: interface in this callback, otherwise it will cause an infinite loop call. * @param walkManager 步行导航管理类 * Walking navigation management class * @param naviRoute 路径信息,参考 AMapNaviRoute 类 * Path Information, refer to AMapNaviRoute class */ - (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviRoute:(nullable AMapNaviRoute *)naviRoute; /** * @brief 导航信息更新回调 * Navigation Information Update Callback * @param walkManager 步行导航管理类 * Walking navigation management class * @param naviInfo 导航信息,参考 AMapNaviInfo 类 * Navigation Information, refer to AMapNaviInfo class */ - (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviInfo:(nullable AMapNaviInfo *)naviInfo; /** * @brief 自车位置更新回调 * Self-Vehicle Position Update Callback * @param walkManager 步行导航管理类 * Walking navigation management class * @param naviLocation 自车位置信息,参考 AMapNaviLocation 类 * Self-Vehicle Position Information, refer to AMapNaviLocation class */ - (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviLocation:(nullable AMapNaviLocation *)naviLocation; @end NS_ASSUME_NONNULL_END