BaiduMap_IOSSDK_v7.2.0_Docs 7.2.0

BMKCycleNavigationManager.h
浏览该文件的文档.
1 //
2 // BMKCycleNaviHelper.h
3 // CycleComponent
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
13 #import "BMKWalkCycleDefine.h"
14 #import "BMKCycleNaviLaunchParam.h"
15 #import "BMKWalkCycleNavigationOptions.h"
16 #import <BaiduMapAPI_Base/BMKBaseComponent.h>
17 #import "BMKWalkCycleNavigationDisplayOption.h"
18 #import "BMKWalkCycleRouteResult.h"
19 #import "BMKWalkCycleNaviSettingManager.h"
20
21 @class BMKBackgroundNavigationView;
22 @class BMKMapView;
23 @class BMKPolyline;
24 NS_ASSUME_NONNULL_BEGIN
25 #pragma mark - 骑行导航控制器类
26
29 @interface BMKCycleNavigationManager : NSObject
30
32 @property (nonatomic, assign) BMKCycleNavigationMode cycleNaviMode;
33
35 @property (nonatomic, assign) UIEdgeInsets zoomToSpanInsets;
37 @property (nonatomic, assign) BMKNaviMapRotateMode naviMapRotateMode;
39 @property (nonatomic, assign) BMKNaviMapOverlookingMode naviMapOverlookingMode;
40
42 @property (nonatomic, assign) BOOL naviMapViewAllStatus;
44 @property (nonatomic, assign) BOOL showRedGreenLight;
46 @property (nonatomic, assign) BOOL enableMultiRoute;
47
48 //最大值为BMKWalkMaxBottomButtonHeight，70
49 /*
50 导航中剩余时间距离面板底部需要预留高度,默认为0。，since 6.5.8
51 对于刘海屏设备，bottomButtonHeight等于【底部安全区域的顶部】 到 【导航中剩余时间距离面板的底部】的距离
52 对于非刘海屏设备，bottomButtonHeight等于【屏幕底部】到【导航中剩余时间距离面板的底部】的距离
53 */
54 @property (nonatomic, assign) CGFloat bottomButtonHeight;
56 @property (nonatomic, assign) CGPoint carPositionOffset;
59 @property (nonatomic, assign) float defaultNaviMapLevel;
61 @property (nonatomic, strong) BMKWalkCycleNaviSettingManager *naviSettingManager;
65 @property (nonatomic, weak, nullable) id <BMKWalkCycleRoutePlanDelegate> routePlanDelegate;
66
70 @property (nonatomic, weak, nullable) id <BMKWalkNaviCalcRouteDelegate> calcRouteDelegate;
71
75 @property (nonatomic, weak, nullable) id <BMKWalkCycleManagerDelegate> managerDelegate;
76
80 @property (nonatomic, weak, nullable) id <BMKWalkCycleRouteGuidanceDelegate> routeGuidanceDelegate;
81
85 @property (nonatomic, weak, nullable) id <BMKWalkCycleTTSPlayerDelegate> ttsPlayerDelegate;
86
90 @property (nonatomic, weak, nullable) id <BMKWalkCycleLocationServiceDelegate> locationAuthorizationDelegate;
91
97 @property (nonatomic, assign) BOOL isSupportExternalTriggerLocation;
98
100 @property (nonatomic, assign) BOOL supportHeading;
101
103 @property (nonatomic, assign) BOOL ttsPlayerEnable;
104
110 + (instancetype)sharedManager;
111
115 + (void)destroy;
116
124 - (BOOL)initNaviEngine:(UIViewController *_Nullable)controller option:(BMKWalkCycleNavigationDisplayOption *)option;
125
130 - (BOOL)initNaviEngine:(UIViewController *_Nullable)controller
131 options:(BMKWalkCycleNavigationOptions *)options;
137 - (void)routePlanWithParams:(BMKCycleNaviLaunchParam *)parameter;
138
142 - (NSArray<BMKPolyline *> *_Nullable)displayRoutePlanResult:(BMKMapView *)mapview;
143
146 - (void)naviCalcRoute:(NSInteger)routeIndex;
147
150 - (NSArray<BMKWalkCycleRouteResult *> *_Nullable)getCycleNaviMulRouteInfos;
151
156 - (BMKWalkCycleRouteResult *_Nullable)getCycleNaviRouteInfo;
157
158
163 - (BMKWalkCycleNavigationData *_Nullable)getCycleNavigationLocationData;
164
166 - (BMKWalkCycleTrafficLightData *)getTrafficLightData;
172 - (BOOL)startCycleNavi __deprecated_msg("已废弃since 6.5.4，内部无实现，请使用- (BOOL)startCycleNaviWithParentController:isPush");
173
180 - (BOOL)startCycleNaviWithParentController:(UIViewController *_Nullable)controller isPush:(BOOL)isPush;
181
183 - (void)exitCycleNomalNavi;
184
187 - (BOOL)startCycleLightNaviWithParentView:(UIView *)parentView;
188
190 - (void)exitCycleLightNavi;
191
193 - (BOOL)switchToCycleNomalNaviWithParentController:(UIViewController *)controller isPush:(BOOL)isPush;
194
196 - (void)returnToViewAll;
197
199 - (void)enterCarFreeSatus;
200
202 - (void)leaveCarFreeSatus;
203
207 - (BMKMapView *_Nullable)getNaviMap;
208
212 - (BMKBackgroundNavigationView *)getBackgroundNavigationView;
213
217 - (BMKBackgroundNavigationView *)getBackgroundNavigationViewWithTag:(NSString *)tag;
218
220 - (UIView *_Nullable)getCustomNaviView;
221
225 - (void)pause;
226
230 - (void)resume;
231
235 - (void)stop;
236
243 - (void)showsBackgroundLocationIndicator:(BOOL)show;
244
246 - (void)triggerLocation:(BMKUserLocation *)location;
248 - (void)triggerHeading:(CLHeading *)heading;
249
250 #pragma mark - 模拟导航相关
251 - (void)startSimulateNavi;
254 - (void)stopSimulateNavi;
256 - (void)setSimulateNaviSpeed:(int)speed;
257
258 #pragma mark - 导航元素控制
259 - (void)setNaviDrawElementsShow:(BOOL)show elements:(NSArray *)elements;
265
269 - (void)updateNaviDrawItemDisplayOption:(BMKWalkCycleNaviDrawItemDisplayOption *)dispalyOption;
270 @end
271 NS_ASSUME_NONNULL_END
BMKWalkCycleTrafficLightData
Definition: BMKWalkCycleTrafficLightData.h:49
BMKCycleNaviLaunchParam
算路起始点设置类
Definition: BMKCycleNaviLaunchParam.h:16
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
BMKWalkCycleRouteResult.h
BMKWalkCycleDefine.h
BMKCycleNaviLaunchParam.h
BMKWalkCycleNaviSettingManager.h
BMKUserLocation
Definition: BMKUserLocation.h:14