TencentNavKit

TNKTravelNavView.h
Go to the documentation of this file.
1//
2// TNKTravelNavView.hpp
3// TencentNavKit
4//
5// Created by xzg on 2025/7/16.
6// Copyright © 2025 Tencent. All rights reserved.
7//
8
9#import <TencentNavKit/TNKBaseNavView.h>
10#import <TencentNavKit/TNKDriveNavDelegate.h>
11//#import <TencentNavKit/TNKTravelNavDelegate.h>
12#import <TencentNavKit/TNKDriveNavViewDelegate.h>
13#import <TencentNavKit/TNKWaypointMarkerPresentation.h>
14#import <TencentNavKit/TNKNaviTrafficBarWidget.h>
15#import <TencentNavKit/TNKEnlargedMapConfig.h>
16#import <TencentNavKit/TNKUIComponentConfig.h>
17#import "TNKCustomAreaView.h"
18
19NS_ASSUME_NONNULL_BEGIN
20
22//@interface TNKTravelNavView : TNKBaseNavView<TNKTravelNavDelegate>
23@interface TNKTravelNavView : TNKBaseNavView<TNKDriveNavDelegate>
24
28//@property (nonatomic, weak, nullable) id<TNKTravelNavViewDelegate> delegate;
29@property (nonatomic, weak, nullable) id<TNKDriveNavViewDelegate> delegate;
30
31
32//**************** 导航界面元素控制-开始 ****************//
33
37@property (nonatomic, assign) NSUInteger panelTopGap;
38
42@property (nonatomic, assign) NSUInteger panelButtomGap;
43
47- (TNKTravelNavView *(^)(NSUInteger))withPanelTopGap;
48
52- (TNKTravelNavView *(^)(NSUInteger))withPanelButtomGap;
53
57@property (nonatomic, assign) BOOL navigationPanelEnabled;
58
62- (TNKTravelNavView *(^)(BOOL))withNavigationPanelEnabled;
63
68@property (nonatomic, assign) BOOL guidedLaneEnabled;
69
73- (TNKTravelNavView *(^)(BOOL))withGuidedLaneEnabled;
74
78@property (nonatomic, assign) BOOL showUIElements;
79
83- (TNKTravelNavView *(^)(BOOL))withShowUIElements;
84
88//@property (nonatomic, assign) BOOL showBottomToolbar;
89
93- (TNKTravelNavView *(^)(BOOL))withShowBottomToolbar;
94
98@property (nonatomic, assign) BOOL showToast;
99
103- (TNKTravelNavView *(^)(BOOL))withShowToast;
104
108@property (nonatomic, assign) BOOL showCurrentSpeedView;
109
113- (TNKTravelNavView *(^)(BOOL))withShowCurrentSpeedView;
114
118@property (nonatomic, assign) BOOL showGrossSpeedingView;
119
123- (TNKTravelNavView *(^)(BOOL))withShowGrossSpeedingView;
124
128@property (nonatomic, assign) BOOL showTrafficBar;
129
133- (TNKTravelNavView *(^)(BOOL))withShowTrafficBar;
134
138@property (nonatomic, readonly, nullable) TNKNaviTrafficBarWidget *trafficBar;
139
143@property (nonatomic, assign) BOOL showRoadTypeButton;
144
148- (TNKTravelNavView *(^)(BOOL))withShowRoadTypeButton;
149
153@property (nonatomic, assign) BOOL showSettingButton;
154
158- (TNKTravelNavView *(^)(BOOL))withShowSettingButton;
159
160
164@property (nonatomic, assign) BOOL showExitButton;
165
169- (TNKTravelNavView *(^)(BOOL))withShowExitButton;
170
174@property (nonatomic, assign) BOOL showLimitSpeedAndCurrentRoadNameView;
175
179- (TNKTravelNavView *(^)(BOOL))withShowLimitSpeedAndCurrentRoadNameView;
180
184@property (nonatomic, assign) BOOL showSmartLocView;
185
189- (TNKTravelNavView *(^)(BOOL))withShowSmartLocView;
190
194@property (nonatomic, assign) BOOL showOverviewButton;
195
199- (TNKTravelNavView *(^)(BOOL))withShowOverviewButton;
200
204@property (nonatomic, assign) BOOL showRouteRefreshButton;
205
209- (TNKTravelNavView *(^)(BOOL))withShowRouteRefreshButton;
210
214@property (nonatomic, assign) BOOL showMapTrafficButton;
215
219- (TNKTravelNavView *(^)(BOOL))withShowMapTrafficButton;
220
224@property (nonatomic, assign) BOOL showBroadCastButton;
225
229- (TNKTravelNavView *(^)(BOOL))withShowBroadCastButton;
230
234@property (nonatomic, assign) BOOL showServiceAreaInfo;
235
239- (TNKTravelNavView *(^)(BOOL))withShowServiceAreaInfo;
240
244- (void)setAllComponentVisibility:(BOOL)visible;
245
250- (TNKTravelNavView *(^)(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) TNKTravelEnlargedMapConfig *enlargedMapConfig;
329
330
334@property (nonatomic, strong, readonly) TNKCustomAreaView *customAreaView;
335
339- (void)setCustomAreaHeight:(CGFloat)height;
340
341
347- (void)updateEnlargedMapConfig:(TNKTravelEnlargedMapConfig *)enlargedMapConfig;
348
353- (void)removeCurrentEnlargedMap;
354
362- (void)updateWaypointMarkerPresentation:(NSDictionary<NSString *, TNKWaypointMarkerPresentation *> * _Nullable)waypointMarkerPresentationDictionary;
363
370- (void)setBackupRoutesHidden:(BOOL)hidden backupRouteIDs:(NSArray<NSString *> * _Nullable)backupRouteIDs;
371
372
373- (void)createExitNaviAlert;
374
375- (void)removeCustomView;
376
377@end
378
379NS_ASSUME_NONNULL_END
TNKCustomAreaView.h
TNKCustomAreaView
Definition: TNKCustomAreaView.h:26
TNKNaviTrafficBarWidget
路况光柱图
Definition: TNKNaviTrafficBarWidget.h:29
TNKTravelEnlargedMapConfig
Definition: TNKEnlargedMapConfig.h:65
TNKUIComponentConfig
Definition: TNKUIComponentConfig.h:7
TNKWaypointMarkerPresentation
途经点配置类
Definition: TNKWaypointMarkerPresentation.h:16