BaiduMap_IOSSDK_v7.0.0_Docs 7.0.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
203 - (void)pause;
204
206 - (void)resume;
207
209 - (void)stop;
210
213 - (void)showsBackgroundLocationIndicator:(BOOL)show;
214
216 - (BOOL)isOnlyIndoorRouteNavi;
217
219 - (void)triggerLocation:(BMKUserLocation *)location;
221 - (void)triggerHeading:(CLHeading *)heading;
222
223 #pragma mark - 步行AR导航3D模型显示相关接口
224
228 - (NSArray <BMKWalkNavigationNPCGuider *> *_Nullable)fetchAllAvailableGuiders;
229
233 - (BOOL)showGuider:(BMKWalkNavigationNPCGuider *)guider;
234
235 #pragma mark - 模拟导航相关
236 - (void)startSimulateNavi;
239 - (void)stopSimulateNavi;
241 - (void)setSimulateNaviSpeed:(int)speed;
242
243 #pragma mark - 导航元素控制
244 - (void)setNaviDrawElementsShow:(BOOL)show elements:(NSArray *)elements;
250
254 - (void)updateNaviDrawItemDisplayOption:(BMKWalkCycleNaviDrawItemDisplayOption *)dispalyOption;
255 @end
256 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:118
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