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
204- (TNKDriveNavView *(^)(BOOL))withShowServiceAreaInfo;
205
209- (void)setAllComponentVisibility:(BOOL)visible;
210
215- (TNKDriveNavView *(^)(void))build;
216
220- (void)setUIComponentConfig:(TNKUIComponentConfig *)uiComponentConfig;
221
225- (TNKUIComponentConfig *)getUIComponentConfig;
226
227//**************** 导航界面元素控制-结束 ****************//
228
229
235@property (nonatomic, getter=isAutoScaleEnabled) BOOL autoScaleEnabled;
236
241@property (nonatomic, assign) CGFloat autoScaleMinZoomLevel;
242
246@property (nonatomic, assign) BOOL showTraffic;
247
251@property (nonatomic, assign) BOOL shows3DBuildings;
252
257@property (nonatomic, assign) BOOL routeTrafficLightHidden;
258
263@property (nonatomic, assign) BOOL lightCountDownTimerHidden;
264
268@property (nonatomic, assign) BOOL backupRouteBubbleHidden;
269
274@property (nonatomic, assign) BOOL cameraMarkerEnabled;
275
280@property (nonatomic, assign) BOOL showDistanceOnCamera;
281
287@property (nonatomic, assign) BOOL trafficBubbleEnabled;
288
293@property (nonatomic, readonly) TNKEnlargedMapConfig *enlargedMapConfig;
294
295
301- (void)updateEnlargedMapConfig:(TNKEnlargedMapConfig *)enlargedMapConfig;
302
307- (void)removeCurrentEnlargedMap;
308
316- (void)updateWaypointMarkerPresentation:(NSDictionary<NSString *, TNKWaypointMarkerPresentation *> * _Nullable)waypointMarkerPresentationDictionary;
317
324- (void)setBackupRoutesHidden:(BOOL)hidden backupRouteIDs:(NSArray<NSString *> * _Nullable)backupRouteIDs;
325
326@end
327
328NS_ASSUME_NONNULL_END
TNKEnlargedMapConfig
放大图配置类
Definition: TNKEnlargedMapConfig.h:17
TNKNaviTrafficBarWidget
路况光柱图
Definition: TNKNaviTrafficBarWidget.h:29
TNKUIComponentConfig
Definition: TNKUIComponentConfig.h:7
TNKWaypointMarkerPresentation
途经点配置类
Definition: TNKWaypointMarkerPresentation.h:16