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 showLimitSpeedAndCurrentRoadNameView;
154
158- (TNKTravelNavView *(^)(BOOL))withShowLimitSpeedAndCurrentRoadNameView;
159
163@property (nonatomic, assign) BOOL showSmartLocView;
164
168- (TNKTravelNavView *(^)(BOOL))withShowSmartLocView;
169
173@property (nonatomic, assign) BOOL showOverviewButton;
174
178- (TNKTravelNavView *(^)(BOOL))withShowOverviewButton;
179
183@property (nonatomic, assign) BOOL showRouteRefreshButton;
184
188- (TNKTravelNavView *(^)(BOOL))withShowRouteRefreshButton;
189
193@property (nonatomic, assign) BOOL showMapTrafficButton;
194
198- (TNKTravelNavView *(^)(BOOL))withShowMapTrafficButton;
199
203@property (nonatomic, assign) BOOL showBroadCastButton;
204
208- (TNKTravelNavView *(^)(BOOL))withShowBroadCastButton;
209
213@property (nonatomic, assign) BOOL showServiceAreaInfo;
214
218- (TNKTravelNavView *(^)(BOOL))withShowServiceAreaInfo;
219
223- (void)setAllComponentVisibility:(BOOL)visible;
224
229- (TNKTravelNavView *(^)(void))build;
230
234- (void)setUIComponentConfig:(TNKUIComponentConfig *)uiComponentConfig;
235
239- (TNKUIComponentConfig *)getUIComponentConfig;
240
241//**************** 导航界面元素控制-结束 ****************//
242
243
249@property (nonatomic, getter=isAutoScaleEnabled) BOOL autoScaleEnabled;
250
255@property (nonatomic, assign) CGFloat autoScaleMinZoomLevel;
256
260@property (nonatomic, assign) BOOL showTraffic;
261
265@property (nonatomic, assign) BOOL shows3DBuildings;
266
271@property (nonatomic, assign) BOOL routeTrafficLightHidden;
272
277@property (nonatomic, assign) BOOL lightCountDownTimerHidden;
278
282@property (nonatomic, assign) BOOL backupRouteBubbleHidden;
283
288@property (nonatomic, assign) BOOL cameraMarkerEnabled;
289
294@property (nonatomic, assign) BOOL showDistanceOnCamera;
295
301@property (nonatomic, assign) BOOL trafficBubbleEnabled;
302
307@property (nonatomic, readonly) TNKTravelEnlargedMapConfig *enlargedMapConfig;
308
309
313@property (nonatomic, strong, readonly) TNKCustomAreaView *customAreaView;
314
318- (void)setCustomAreaHeight:(CGFloat)height;
319
320
326- (void)updateEnlargedMapConfig:(TNKTravelEnlargedMapConfig *)enlargedMapConfig;
327
332- (void)removeCurrentEnlargedMap;
333
341- (void)updateWaypointMarkerPresentation:(NSDictionary<NSString *, TNKWaypointMarkerPresentation *> * _Nullable)waypointMarkerPresentationDictionary;
342
349- (void)setBackupRoutesHidden:(BOOL)hidden backupRouteIDs:(NSArray<NSString *> * _Nullable)backupRouteIDs;
350
351
352- (void)createExitNaviAlert;
353
354- (void)removeCustomView;
355
356@end
357
358NS_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