BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKWalkNavigationManager.h
浏览该文件的文档.
1 //
2 // BMKWalkNaviHelper.h
3 // WalkCycleComponent
4 //
5 // Created by Xin,Qi on 24/01/2018.
6 // Copyright © 2018 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <UIKit/UIKit.h>
11 #import "BMKWalkCycleNavigationDelegates.h"
12 #import "BMKWalkNaviLaunchParam.h"
13 #import "BMKWalkCycleNavigationDisplayOption.h"
14 #import "BMKWalkNavigationNPCOption.h"
15 #import "BMKWalkCycleRouteResult.h"
16 #import <BaiduMapAPI_Base/BMKBaseComponent.h>
17 #import "BMKWalkCycleNaviSettingManager.h"
18 #import "BMKWalkCycleNavigationOptions.h"
19 #import "BMKWalkCycleTrafficLightData.h"
20 @class BMKBackgroundNavigationView;
21 @class BMKMapView;
22 @class BMKPolyline;
23 NS_ASSUME_NONNULL_BEGIN
24 #pragma mark - 步行导航控制器类
25 @interface BMKWalkNavigationManager : NSObject
28 @property (nonatomic, assign) BMKWalkNavigationMode walkNaviMode;
30 @property (nonatomic, assign) BOOL showRedGreenLight;
31
33 @property (nonatomic, assign) UIEdgeInsets zoomToSpanInsets;
34
36 @property (nonatomic, assign) BMKNaviMapRotateMode naviMapRotateMode;
38 @property (nonatomic, assign) BMKNaviMapOverlookingMode naviMapOverlookingMode;
40 @property (nonatomic, assign) BOOL naviMapViewAllStatus;
41
42 /*
43 导航中剩余时间距离面板底部需要预留高度,默认为0。，since 6.5.8
44 对于刘海屏设备，bottomButtonHeight等于【底部安全区域的顶部】 到 【导航中剩余时间距离面板的底部】的距离
45 对于非刘海屏设备，bottomButtonHeight等于【屏幕底部】到【导航中剩余时间距离面板的底部】的距离
46 */
47 @property (nonatomic, assign) CGFloat bottomButtonHeight;
48 @property (nonatomic, assign) CGPoint carPositionOffset;
51 @property (nonatomic, assign) float defaultNaviMapLevel;
53 @property (nonatomic, strong) BMKWalkCycleNaviSettingManager *naviSettingManager;
54
56 @property (nonatomic, assign) BOOL enableMultiRoute;
57
59 @property (nonatomic, weak, nullable) id <BMKWalkCycleRoutePlanDelegate> routePlanDelegate;
60
62 @property (nonatomic, weak, nullable) id <BMKWalkNaviCalcRouteDelegate> calcRouteDelegate;
63
65 @property (nonatomic, weak, nullable) id <BMKWalkCycleManagerDelegate> managerDelegate;
66
68 @property (nonatomic, weak, nullable) id <BMKWalkCycleRouteGuidanceDelegate> routeGuidanceDelegate;
69
71 @property (nonatomic, weak, nullable) id <BMKWalkCycleTTSPlayerDelegate> ttsPlayerDelegate;
72
74 @property (nonatomic, weak, nullable) id <BMKWalkCycleLocationServiceDelegate> locationAuthorizationDelegate;
75
81 @property (nonatomic, assign) BOOL isSupportExternalTriggerLocation;
82
84 @property (nonatomic, assign) BOOL supportHeading;
85
87 @property (nonatomic, assign) BOOL ttsPlayerEnable;
88
91 + (instancetype)sharedManager;
92
94 + (void)destroy;
95
99 - (BOOL)initNaviEngine:(UIViewController * _Nullable)controller;
100
105 - (BOOL)initNaviEngine:(UIViewController * _Nullable)controller
106 displayOption:(BMKWalkCycleNavigationDisplayOption * _Nullable)displayOption;
107
112 - (BOOL)initNaviEngine:(UIViewController * _Nullable)controller
113 options:(BMKWalkCycleNavigationOptions * _Nullable)options;
114
120 - (BOOL)initNaviEngine:(UIViewController * _Nullable)controller
121 displayOption:(BMKWalkCycleNavigationDisplayOption * _Nullable)displayOption
122 npcOption:(BMKWalkNavigationNPCOption * _Nullable)npcOption;
123
126 - (void)routePlanWithParams:(BMKWalkNaviLaunchParam *)parameter;
127
130 - (NSArray<BMKWalkCycleRouteResult *> *_Nullable)getWalkNaviMulRouteInfos;
131
134 - (BMKWalkCycleRouteResult *_Nullable)getWalkNaviRouteInfo;
135
138 - (BMKWalkCycleNavigationData *_Nullable)getWalkNavigationLocationData;
139
143 - (NSArray<BMKPolyline *> *_Nullable)displayRoutePlanResult:(BMKMapView *)mapview;
144
146 - (BMKWalkCycleTrafficLightData *)getTrafficLightData;
147
150 - (void)naviCalcRoute:(NSInteger)routeIndex;
151
156 - (BOOL)startWalkNavi:(BMKWalkNavigationMode)navigationMode __deprecated_msg("已废弃since 6.0.0，内部无实现，请使用- (BOOL)startWalkNavi");
157
158 - (BOOL)startWalkNavi __deprecated_msg("已废弃since 6.5.4，内部无实现，请使用- (BOOL)startWalkNavi:withParentController:isPush");
159
165 - (BOOL)startWalkNaviWithParentController:(UIViewController * _Nullable)controller isPush:(BOOL)isPush;
166
168 - (void)exitWalkNomalNavi;
169
172 - (BOOL)startWalkLightNaviWithParentView:(UIView *)parentView;
173
175 - (void)exitWalkLightNavi;
176
178 - (BOOL)switchToWalkNomalNaviWithParentController:(UIViewController *)controller isPush:(BOOL)isPush;
179
181 - (void)returnToViewAll;
182
184 - (void)enterCarFreeSatus;
185
187 - (void)leaveCarFreeSatus;
188
189
190
192 - (UIView *_Nullable)getCustomNaviView;
193
195 - (BMKMapView *_Nullable)getNaviMap;
196
200 - (BMKBackgroundNavigationView *)getBackgroundNavigationView;
201
205 - (BMKBackgroundNavigationView *)getBackgroundNavigationViewWithTag:(NSString *)tag;
206
208 - (void)pause;
209
211 - (void)resume;
212
214 - (void)stop;
215
218 - (void)showsBackgroundLocationIndicator:(BOOL)show;
219
221 - (BOOL)isOnlyIndoorRouteNavi;
222
224 - (void)triggerLocation:(BMKUserLocation *)location;
226 - (void)triggerHeading:(CLHeading *)heading;
227
228 #pragma mark - 模拟导航相关
229 - (void)startSimulateNavi;
232 - (void)stopSimulateNavi;
234 - (void)setSimulateNaviSpeed:(int)speed;
235
236 #pragma mark - 步行AR导航3D模型显示相关接口
237
241 - (NSArray <BMKWalkNavigationNPCGuider *> *_Nullable)fetchAllAvailableGuiders;
242
246 - (BOOL)showGuider:(BMKWalkNavigationNPCGuider *)guider;
247
248 #pragma mark - 模拟导航相关
249 - (void)startSimulateNavi;
252 - (void)stopSimulateNavi;
254 - (void)setSimulateNaviSpeed:(int)speed;
255
256 #pragma mark - 导航元素控制
257 - (void)setNaviDrawElementsShow:(BOOL)show elements:(NSArray *)elements;
263
267 - (void)updateNaviDrawItemDisplayOption:(BMKWalkCycleNaviDrawItemDisplayOption *)dispalyOption;
268 @end
269 NS_ASSUME_NONNULL_END
BMKWalkCycleTrafficLightData
Definition: BMKWalkCycleTrafficLightData.h:49
BMKWalkCycleNaviSettingManager
Definition: BMKWalkCycleNaviSettingManager.h:14
BMKWalkCycleNaviDrawItemDisplayOption
导航地图页面元素自定义样式
Definition: BMKWalkCycleNavigationDisplayOption.h:189
BMKMapView
地图View类，使用此View可以显示地图窗口，并且对地图进行相关的操作
Definition: BMKMapView.h:132
BMKWalkCycleRouteResult
Definition: BMKWalkCycleRouteResult.h:26
BMKPolyline
此类用于定义一段折线
Definition: BMKPolyline.h:16
BMKWalkCycleTrafficLightData.h
BMKWalkNaviLaunchParam.h
BMKWalkCycleRouteResult.h
BMKWalkNaviLaunchParam
算路起始点设置类
Definition: BMKWalkNaviLaunchParam.h:18
BMKWalkCycleNaviSettingManager.h
BMKUserLocation
Definition: BMKUserLocation.h:14