TencentNavKit

TNKDriveNavManager.h
Go to the documentation of this file.
1//
2// TNKDriveNavManager.h
3// TencentNavKit
4//
5// Created by mol on 2022/7/26.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <TencentNavKit/TNKBaseNavManager.h>
10#import <TencentNavKit/TNKDriveCommonObj.h>
11#import <TencentNavKit/TNKDriveNavDelegate.h>
12#import <TencentNavKit/TNKSearchTask.h>
13#import <TencentNavKit/TNKDriveNavDataSource.h>
14
15NS_ASSUME_NONNULL_BEGIN
16
18// * @brief 途经点移除策略
19// */
20//typedef enum _TNKWaypointRemovedStrategy
21//{
22// /// 默认策略。到达途经点后SDK自动判达。
23// TNKWaypointRemovedStrategyDefault = 0,
24// /// 开发者移除策略。达到途经点如果想要移除该途经点，需要开发者调用changeWayPoints方法重新算路
25// TNKWaypointRemovedStrategyManually = 1,
26//} TNKWaypointRemovedStrategy;
27
28
30@interface TNKDriveNavManager : TNKBaseNavManager
31
33+ (instancetype)sharedInstance;
34
38@property (nonatomic, assign, getter=isMultiRoutesEnabled) BOOL multiRoutesEnabled;
39
44@property (nonatomic, assign) BOOL autoHandleOffrouteEnabled;
45
50@property (nonatomic, assign) BOOL showMultiRoutesWhenStartNav;
51
56@property (nonatomic, assign) TNKNavTTSMode ttsMode;
57
58
63@property (nonatomic, assign) int routePlanCacheSize;
64
68@property (nonatomic, readonly, nullable) TNKDriveNavRoute *curNavRoute;
69
73@property (nonatomic, readonly, nullable) NSArray<TNKDriveNavRoute *> *backupNavRoutes;
74
79@property (nonatomic, assign) TNKWaypointRemovedStrategy waypointRemovedStrategy;
80
84@property (nonatomic, weak, nullable) id<TNKDriveNavDataSource> navDataSource;
85
93- (void)registerNavDelegate:(id<TNKDriveNavDelegate>)navDelegate;
94
99- (void)unregisterNavDelegate:(id<TNKDriveNavDelegate>)navDelegate;
100
104- (void)unregisterAllNavDelegates;
105
115- (TNKSearchTask * _Nullable)searchRoutesWithRequest:(TNKDriveRouteRequest *)request
116 completion:(void (^)(TNKDriveRouteSearchResult * _Nullable searchResult,
117 NSError * _Nullable error))completion;
118
125- (int)changeToBackupRoute:(NSString *)routeID;
126
133- (int)deleteBackupRoute:(NSString *)routeID;
134
139- (void)deleteAllBackupRoutes;
140
145- (void)requestTts;
146
153- (void)setDestArriveOffRouteRadius:(int)destArriveRadius destOffRouteRadius:(int)destOffRouteRadius;
154
155@end
156
157NS_ASSUME_NONNULL_END
TNKDriveRouteRequest
驾车算路请求类
Definition: TNKDriveCommonObj.h:400
TNKDriveRouteSearchResult
驾车算路返回数据类
Definition: TNKDriveCommonObj.h:557
TNKSearchTask
路线规划任务类
Definition: TNKSearchTask.h:17