OpenSDKv5.7.2
BNDriveRouteProtocol.h
浏览该文件的文档.
1//
2// BNDriveRouteProtocol.h
3// BNDriverPageKit
4//
5// Created by linbiao on 2019/5/8.
6// Copyright © 2019年 Chen,Xintao. All rights reserved.
7//
8
9#ifndef BNDriveRouteProtocol_h
10#define BNDriveRouteProtocol_h
11
13typedef struct BNMargin {
14 CGFloat top, left, bottom, right;
16
17#import <Foundation/Foundation.h>
18
19@class BNCarRouteModel;
21
22
24@protocol BNDriveRouteProtocol <NSObject>
25
29@property (nonatomic, weak) id<BNDriveRouteManagerDelegate> delegate;
30
37- (void)showRouteViewAll:(BNMargin)margin animated:(BOOL)animated;
38
44- (void)selectRouteAtIndex:(NSUInteger)routeIndex;
45
51- (void)viewWillAppear:(UIView*)parentView;
52
58- (void)viewWillDisAppear:(UIView*)parentView;
59
60/*
61 打开定位,驾车页算路成功后需要打开定位才能显示车标
62 */
64
65/*
66 关闭定位
67 */
68- (void)stopUpdateLocation;
69
70/*
71 获取当前路线信息
72
73 @return 当前路线信息
74 */
76
80- (void)destory;
81
82@end
83
84
86@protocol BNDriveRouteManagerDelegate <NSObject>
87
93- (void)onHandleTouchRouteAtIndex:(NSUInteger)routeIndex;
94
100- (void)onHandleUpdateCurrentCarPositionInfo:(NSDictionary *)positionInfo;
101
102@end
103
104#endif /* BNDriveRouteProtocol_h */
struct BNMargin BNMargin
margin结构体
多路线总信息
驾车页模块接口
id< BNDriveRouteManagerDelegate > delegate
路线结果页面相关事件回调的delegate
BNCarRouteModel * getCurrentCarRouteData()
void destory()
销毁BNDriveRouteManager相关资源
margin结构体