百度导航SDK for iOS类参考
 All Classes Functions Properties
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 
12 typedef struct BNMargin {
13  CGFloat top, left, bottom, right;
14 } BNMargin;
15 
16 #import <Foundation/Foundation.h>
17 
18 @class BNCarRouteModel;
20 
21 @protocol BNDriveRouteProtocol <NSObject>
22 
26 @property (nonatomic, weak) id<BNDriveRouteManagerDelegate> delegate;
27 
34 - (void)showRouteViewAll:(BNMargin)margin animated:(BOOL)animated;
35 
41 - (void)selectRouteAtIndex:(NSUInteger)routeIndex;
42 
48 - (void)viewWillAppear:(UIView*)parentView;
49 
55 - (void)viewWillDisAppear:(UIView*)parentView;
56 
57 /*
58  打开定位,驾车页算路成功后需要打开定位才能显示车标
59  */
60 - (void)startUpdateLocation;
61 
62 /*
63  关闭定位
64  */
65 - (void)stopUpdateLocation;
66 
67 /*
68  获取当前路线信息
69 
70  @return 当前路线信息
71  */
72 - (BNCarRouteModel *)getCurrentCarRouteData;
73 
77 - (void)destory;
78 
79 @end
80 
81 @protocol BNDriveRouteManagerDelegate <NSObject>
82 
88 - (void)onHandleTouchRouteAtIndex:(NSUInteger)routeIndex;
89 
95 - (void)onHandleUpdateCurrentCarPositionInfo:(NSDictionary *)positionInfo;
96 
97 @end
98 
99 #endif /* BNDriveRouteProtocol_h */
Definition: BNDriveRouteProtocol.h:12
Definition: BNCarRouteData.h:20
Definition: BNDriveRouteProtocol.h:21
Definition: BNDriveRouteProtocol.h:81
id< BNDriveRouteManagerDelegate > delegate
Definition: BNDriveRouteProtocol.h:26