TencentNavKit

TNKDriveNavView.h
Go to the documentation of this file.
1//
2// TNKDriveNavView.h
3// TencentNavKit
4//
5// Created by mol on 2022/8/2.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <TencentNavKit/TNKBaseNavView.h>
10#import <TencentNavKit/TNKDriveNavDelegate.h>
11#import <TencentNavKit/TNKDriveNavViewDelegate.h>
12#import <TencentNavKit/TNKWaypointMarkerPresentation.h>
13#import <TencentNavKit/TNKNaviTrafficBarWidget.h>
14#import <TencentNavKit/TNKEnlargedMapConfig.h>
15#import <TencentNavKit/TNKUIComponentConfig.h>
16
17NS_ASSUME_NONNULL_BEGIN
18
20@interface TNKDriveNavView : TNKBaseNavView<TNKDriveNavDelegate>
21
25@property (nonatomic, weak, nullable) id<TNKDriveNavViewDelegate> delegate;
26
27
28//**************** 导航界面元素控制-开始 ****************//
29
33@property (nonatomic, assign) NSUInteger panelTopGap;
34
38- (TNKDriveNavView *(^)(NSUInteger))withPanelTopGap;
39
43@property (nonatomic, assign) BOOL navigationPanelEnabled;
44
48- (TNKDriveNavView *(^)(BOOL))withNavigationPanelEnabled;
49
54@property (nonatomic, assign) BOOL guidedLaneEnabled;
55
59- (TNKDriveNavView *(^)(BOOL))withGuidedLaneEnabled;
60
64@property (nonatomic, assign) BOOL showUIElements;
65
69- (TNKDriveNavView *(^)(BOOL))withShowUIElements;
70
74@property (nonatomic, assign) BOOL showBottomToolbar;
75
79- (TNKDriveNavView *(^)(BOOL))withShowBottomToolbar;
80
84@property (nonatomic, assign) BOOL showToast;
85
89- (TNKDriveNavView *(^)(BOOL))withShowToast;
90
94@property (nonatomic, assign) BOOL showCurrentSpeedView;
95
99- (TNKDriveNavView *(^)(BOOL))withShowCurrentSpeedView;
100
104@property (nonatomic, assign) BOOL showGrossSpeedingView;
105
109- (TNKDriveNavView *(^)(BOOL))withShowGrossSpeedingView;
110
114@property (nonatomic, assign) BOOL showTrafficBar;
115
119- (TNKDriveNavView *(^)(BOOL))withShowTrafficBar;
120
124@property (nonatomic, readonly, nullable) TNKNaviTrafficBarWidget *trafficBar;
125
129@property (nonatomic, assign) BOOL showRoadTypeButton;
130
134- (TNKDriveNavView *(^)(BOOL))withShowRoadTypeButton;
135
139@property (nonatomic, assign) BOOL showLimitSpeedAndCurrentRoadNameView;
140
144- (TNKDriveNavView *(^)(BOOL))withShowLimitSpeedAndCurrentRoadNameView;
145
149@property (nonatomic, assign) BOOL showSmartLocView;
150
154- (TNKDriveNavView *(^)(BOOL))withShowSmartLocView;
155
159@property (nonatomic, assign) BOOL showOverviewButton;
160
164- (TNKDriveNavView *(^)(BOOL))withShowOverviewButton;
165
169@property (nonatomic, assign) BOOL showRouteRefreshButton;
170
174- (TNKDriveNavView *(^)(BOOL))withShowRouteRefreshButton;
175
179@property (nonatomic, assign) BOOL showMapTrafficButton;
180
184- (TNKDriveNavView *(^)(BOOL))withShowMapTrafficButton;
185
189@property (nonatomic, assign) BOOL showBroadCastButton;
190
194- (TNKDriveNavView *(^)(BOOL))withShowBroadCastButton;
195
199@property (nonatomic, assign) BOOL showServiceAreaInfo;
200
201
205@property (nonatomic, assign) BOOL showSettingButton;
206
210- (TNKDriveNavView *(^)(BOOL))withShowSettingButton;
211
212
216@property (nonatomic, assign) BOOL showExitButton;
217
221- (TNKDriveNavView *(^)(BOOL))withShowExitButton;
222
223
227- (TNKDriveNavView *(^)(BOOL))withShowServiceAreaInfo;
228
229
233@property (nonatomic, assign) BOOL showRouteExplain;
234
238- (TNKDriveNavView *(^)(BOOL)) withShowRouteExplain;
239
240
244- (void)setAllComponentVisibility:(BOOL)visible;
245
250- (TNKDriveNavView *(^)(void))build;
251
255- (void)setUIComponentConfig:(TNKUIComponentConfig *)uiComponentConfig;
256
260- (TNKUIComponentConfig *)getUIComponentConfig;
261
262//**************** 导航界面元素控制-结束 ****************//
263
264
270@property (nonatomic, getter=isAutoScaleEnabled) BOOL autoScaleEnabled;
271
276@property (nonatomic, assign) CGFloat autoScaleMinZoomLevel;
277
281@property (nonatomic, assign) BOOL showTraffic;
282
286@property (nonatomic, assign) BOOL shows3DBuildings;
287
292@property (nonatomic, assign) BOOL routeTrafficLightHidden;
293
298@property (nonatomic, assign) BOOL lightCountDownTimerHidden;
299
303@property (nonatomic, assign) BOOL backupRouteBubbleHidden;
304
309@property (nonatomic, assign) BOOL cameraMarkerEnabled;
310
315@property (nonatomic, assign) BOOL showDistanceOnCamera;
316
322@property (nonatomic, assign) BOOL trafficBubbleEnabled;
323
328@property (nonatomic, readonly) TNKEnlargedMapConfig *enlargedMapConfig;
329
333@property (nonatomic, assign) BOOL showRecommendRoute;
334
335
341- (void)updateEnlargedMapConfig:(TNKEnlargedMapConfig *)enlargedMapConfig;
342
347- (void)removeCurrentEnlargedMap;
348
356- (void)updateWaypointMarkerPresentation:(NSDictionary<NSString *, TNKWaypointMarkerPresentation *> * _Nullable)waypointMarkerPresentationDictionary;
357
364- (void)setBackupRoutesHidden:(BOOL)hidden backupRouteIDs:(NSArray<NSString *> * _Nullable)backupRouteIDs;
365
366@end
367
368NS_ASSUME_NONNULL_END
TNKEnlargedMapConfig
放大图配置类
Definition: TNKEnlargedMapConfig.h:17
TNKNaviTrafficBarWidget
路况光柱图
Definition: TNKNaviTrafficBarWidget.h:29
TNKUIComponentConfig
Definition: TNKUIComponentConfig.h:7
TNKWaypointMarkerPresentation
途经点配置类
Definition: TNKWaypointMarkerPresentation.h:16