TencentNavKit

TNKTravelNavView.h
Go to the documentation of this file.
1//
2// TNKTravelNavView.h
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/TNKDriveNavViewDelegate.h>
12#import <TencentNavKit/TNKWaypointMarkerPresentation.h>
13#import <TencentNavKit/TNKNaviTrafficBarWidget.h>
14#import <TencentNavKit/TNKEnlargedMapConfig.h>
15#import <TencentNavKit/TNKUIComponentConfig.h>
16#import "TNKCustomAreaView.h"
17
18
19
20NS_ASSUME_NONNULL_BEGIN
21
23@interface TNKTravelNavView : TNKBaseNavView<TNKDriveNavDelegate>
24
28@property (nonatomic, weak, nullable) id<TNKDriveNavViewDelegate> delegate;
29
30
31//**************** 导航界面元素控制-开始 ****************//
32
36@property (nonatomic, assign) NSUInteger panelTopGap;
37
41@property (nonatomic, assign) NSUInteger panelButtomGap;
42
46- (TNKTravelNavView *(^)(NSUInteger))withPanelTopGap;
47
51- (TNKTravelNavView *(^)(NSUInteger))withPanelButtomGap;
52
56@property (nonatomic, assign) BOOL navigationPanelEnabled;
57
61- (TNKTravelNavView *(^)(BOOL))withNavigationPanelEnabled;
62
67@property (nonatomic, assign) BOOL guidedLaneEnabled;
68
72@property (nonatomic, assign) BOOL showRecommendRoute;
73
77- (TNKTravelNavView *(^)(BOOL))withGuidedLaneEnabled;
78
82@property (nonatomic, assign) BOOL showUIElements;
83
87- (TNKTravelNavView *(^)(BOOL))withShowUIElements;
88
92//@property (nonatomic, assign) BOOL showBottomToolbar;
93
97- (TNKTravelNavView *(^)(BOOL))withShowBottomToolbar;
98
102@property (nonatomic, assign) BOOL showToast;
103
107- (TNKTravelNavView *(^)(BOOL))withShowToast;
108
112@property (nonatomic, assign) BOOL showCurrentSpeedView;
113
117- (TNKTravelNavView *(^)(BOOL))withShowCurrentSpeedView;
118
122@property (nonatomic, assign) BOOL showGrossSpeedingView;
123
127- (TNKTravelNavView *(^)(BOOL))withShowGrossSpeedingView;
128
132@property (nonatomic, assign) BOOL showTrafficBar;
133
137- (TNKTravelNavView *(^)(BOOL))withShowTrafficBar;
138
142@property (nonatomic, readonly, nullable) TNKNaviTrafficBarWidget *trafficBar;
143
147@property (nonatomic, assign) BOOL showRoadTypeButton;
148
152- (TNKTravelNavView *(^)(BOOL))withShowRoadTypeButton;
153
157@property (nonatomic, assign) BOOL showSettingButton;
158
162- (TNKTravelNavView *(^)(BOOL))withShowSettingButton;
163
164
168@property (nonatomic, assign) BOOL showExitButton;
169
173- (TNKTravelNavView *(^)(BOOL))withShowExitButton;
174
178@property (nonatomic, assign) BOOL showLimitSpeedAndCurrentRoadNameView;
179
183- (TNKTravelNavView *(^)(BOOL))withShowLimitSpeedAndCurrentRoadNameView;
184
188@property (nonatomic, assign) BOOL showSmartLocView;
189
193- (TNKTravelNavView *(^)(BOOL))withShowSmartLocView;
194
198@property (nonatomic, assign) BOOL showOverviewButton;
199
203- (TNKTravelNavView *(^)(BOOL))withShowOverviewButton;
204
208@property (nonatomic, assign) BOOL showRouteRefreshButton;
209
213- (TNKTravelNavView *(^)(BOOL))withShowRouteRefreshButton;
214
218@property (nonatomic, assign) BOOL showMapTrafficButton;
219
223- (TNKTravelNavView *(^)(BOOL))withShowMapTrafficButton;
224
228@property (nonatomic, assign) BOOL showBroadCastButton;
229
233- (TNKTravelNavView *(^)(BOOL))withShowBroadCastButton;
234
238@property (nonatomic, assign) BOOL showServiceAreaInfo;
239
243- (TNKTravelNavView *(^)(BOOL))withShowServiceAreaInfo;
244
248- (void)setAllComponentVisibility:(BOOL)visible;
249
254- (TNKTravelNavView *(^)(void))build;
255
259- (void)setUIComponentConfig:(TNKUIComponentConfig *)uiComponentConfig;
260
264- (TNKUIComponentConfig *)getUIComponentConfig;
265
266//**************** 导航界面元素控制-结束 ****************//
267
268
274@property (nonatomic, getter=isAutoScaleEnabled) BOOL autoScaleEnabled;
275
280@property (nonatomic, assign) CGFloat autoScaleMinZoomLevel;
281
285@property (nonatomic, assign) BOOL showTraffic;
286
290@property (nonatomic, assign) BOOL shows3DBuildings;
291
296@property (nonatomic, assign) BOOL routeTrafficLightHidden;
297
302@property (nonatomic, assign) BOOL lightCountDownTimerHidden;
303
307@property (nonatomic, assign) BOOL backupRouteBubbleHidden;
308
313@property (nonatomic, assign) BOOL cameraMarkerEnabled;
314
319@property (nonatomic, assign) BOOL showDistanceOnCamera;
320
321
325@property (nonatomic, assign) BOOL showRouteExplain;
326
330- (TNKTravelNavView *(^)(BOOL)) withShowRouteExplain;
331
337@property (nonatomic, assign) BOOL trafficBubbleEnabled;
338
343@property (nonatomic, readonly) TNKTravelEnlargedMapConfig *enlargedMapConfig;
344
345
349@property (nonatomic, strong, readonly) TNKCustomAreaView *customAreaView;
350
351
352
356- (void)setCustomAreaHeight:(CGFloat)height;
357
358
364- (void)updateEnlargedMapConfig:(TNKTravelEnlargedMapConfig *)enlargedMapConfig;
365
370- (void)removeCurrentEnlargedMap;
371
379- (void)updateWaypointMarkerPresentation:(NSDictionary<NSString *, TNKWaypointMarkerPresentation *> * _Nullable)waypointMarkerPresentationDictionary;
380
387- (void)setBackupRoutesHidden:(BOOL)hidden backupRouteIDs:(NSArray<NSString *> * _Nullable)backupRouteIDs;
388
392- (void)createExitNaviAlert;
393
394@end
395
396NS_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