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
20 typedef enum _TNKWaypointRemovedStrategy
21{
23 TNKWaypointRemovedStrategyDefault = 0,
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 showMultiRoutesWhenStartNav;
45
50@property (nonatomic, assign) TNKNavTTSMode ttsMode;
51
52
57@property (nonatomic, assign) int routePlanCacheSize;
58
62@property (nonatomic, readonly, nullable) TNKDriveNavRoute *curNavRoute;
63
67@property (nonatomic, readonly, nullable) NSArray<TNKDriveNavRoute *> *backupNavRoutes;
68
73@property (nonatomic, assign) TNKWaypointRemovedStrategy waypointRemovedStrategy;
74
78@property (nonatomic, weak, nullable) id<TNKDriveNavDataSource> navDataSource;
79
87- (void)registerNavDelegate:(id<TNKDriveNavDelegate>)navDelegate;
88
93- (void)unregisterNavDelegate:(id<TNKDriveNavDelegate>)navDelegate;
94
98- (void)unregisterAllNavDelegates;
99
109- (TNKSearchTask * _Nullable)searchRoutesWithRequest:(TNKDriveRouteRequest *)request
110 completion:(void (^)(TNKDriveRouteSearchResult * _Nullable searchResult,
111 NSError * _Nullable error))completion;
112
119- (int)changeToBackupRoute:(NSString *)routeID;
120
127- (int)deleteBackupRoute:(NSString *)routeID;
128
133- (void)deleteAllBackupRoutes;
134
139- (void)requestTts;
140
147- (void)setDestArriveOffRouteRadius:(int)destArriveRadius destOffRouteRadius:(int)destOffRouteRadius;
148
149@end
150
151NS_ASSUME_NONNULL_END
TNKDriveRouteRequest
驾车算路请求类
Definition: TNKDriveCommonObj.h:292
TNKDriveRouteSearchResult
驾车算路返回数据类
Definition: TNKDriveCommonObj.h:443
TNKSearchTask
路线规划任务类
Definition: TNKSearchTask.h:17