OpenSDKv5.7.2
BNLightNaviManagerProtocol.h
浏览该文件的文档.
1//
2// BNLightNaviManagerProtocol.h
3// BNLightNaviKit
4//
5// Created by chenxintao on 2021/5/19.
6//
7
8#ifndef BNLightNaviManagerProtocol_h
9#define BNLightNaviManagerProtocol_h
10#import <Foundation/Foundation.h>
12
13@class BNCarRouteModel;
16@class BNaviRemainInfo;
17@class BNaviStatusInfo;
19
21@protocol BNLightNaviManagerProtocol <NSObject>
22
24@property (weak, nonatomic) id<BNLightNaviManagerDelegate> delegate;
25
27@property (nonatomic, assign) NSInteger autoReturnCarDuration;
28
29
31@property (nonatomic, assign) BOOL deleteRouteWhenArriveDestination;
32
35- (void)zoomToSpan:(UIEdgeInsets)insets;
36
38- (void)startLightNavi;
39
41- (void)stopLightNavi;
42
46- (BOOL)switchToRealNav:(UIViewController*)presentVC withNaviType:(NSString *)naviType;
47
50- (void)viewWillAppear:(UIView*)parentView;
51
54- (void)viewWillDisAppear:(UIView*)parentView;
55
56
59- (void)selectRouteWithRouteDetailIndex:(NSInteger)routeIndex;
60
61
63- (NSInteger)getSelecRouteDetailIndex;
64
65@end
66
67
69@protocol BNLightNaviManagerDelegate <NSObject>
70
72- (UIEdgeInsets)zoomToSpanInsets;
73
76- (void)onHandleExitNavi:(NSDictionary *)params;
77
81-(void)onHandleDrivingRouteChange:(BNCarRouteModel *)carRouteModel;
82
85-(void)onHandleRemainInfo:(BNaviRemainInfo *)remainInfo;
86
89
92-(void)onHandleSimpleGuideInfo:(BNaviSimpleGuideInfo*)simpleGuideInfo;
93
96- (void)onHandleNaviStatusChange:(BNaviStatusInfo*)naviStatusInfo;
97
98
101- (void)onHandleRouteDetailChange:(BNLightRoutesModel *)model;
102
103
106- (void)onHandleClickRoute:(NSInteger)routeDetailIndex;
107
108
111
113- (void)onHandleProfessionalNaviViewDidLoad:(UIView*)naviView;
114@end
115
116#endif /* BNLightNaviManagerProtocol_h */
多路线总信息
轻导航多条路线模型
剩余信息(距离、时间)
剩余红绿灯(目的地、途经点)
简易诱导消息结构体
导航状态消息结构体
UIEdgeInsets zoomToSpanInsets()
sdk内部偏航时进行路线全览,会回调外部这个接口,如果没有实现,使用上一次调用的zoomToSpan:的参数,如果没有调用过zoomToSpan:,则为{0,0,0,...
void onHandleSwitchToLightNaviFail()
从导航中切换回轻导航失败的回调,开发者需要重新算路并开始轻导航
void onHandleSimpleGuideInfoHide()
诱导信息隐藏的回调
NSInteger autoReturnCarDuration
自动回车位的间隔,单位为秒,默认为60秒
BOOL deleteRouteWhenArriveDestination
轻导航中到达终点后是否自动删除路线,默认是YES
id< BNLightNaviManagerDelegate > delegate
BNLightNaviManager的delegate,接收事件回调
void stopLightNavi()
结束轻导航
NSInteger getSelecRouteDetailIndex()
获取当前3tab数据哪个高亮
void startLightNavi()
开始轻导航