TencentNavKit

TNKRideNavManager.h
Go to the documentation of this file.
1//
2// TNKRideNavManager.h
3// TencentNavKit
4//
5// Created by mol on 2022/10/27.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <TencentNavKit/TNKBaseNavManager.h>
10#import <TencentNavKit/TNKRideCommonObj.h>
11#import <TencentNavKit/TNKRideNavDelegate.h>
12#import <TencentNavKit/TNKSearchTask.h>
13#import <TencentNavKit/TNKRideNavDataSource.h>
14
15NS_ASSUME_NONNULL_BEGIN
16
17 typedef enum _TNKRideVehicleType
18{
19 TNKRideVehicleTypeBike = 1,
20 TNKRideVehicleTypeEBike = 2,
21} TNKRideVehicleType;
22
24@interface TNKRideNavManager : TNKBaseNavManager
25
27+ (instancetype)sharedInstance;
28
32@property (nonatomic, readonly, nullable) TNKRideNavRoute *curNavRoute;
33
34
39@property (nonatomic, assign) TNKNavTTSMode ttsMode;
40
44@property (nonatomic, weak, nullable) id<TNKRideNavDataSource> navDataSource;
45
49@property (nonatomic, assign) TNKRideVehicleType vehicleType;
50
58- (void)registerNavDelegate:(id<TNKRideNavDelegate>)navDelegate;
59
64- (void)unregisterNavDelegate:(id<TNKRideNavDelegate>)navDelegate;
65
69- (void)unregisterAllNavDelegates;
70
71
72
76- (TNKSearchTask * _Nullable)searchRoutesWithRequest:(TNKRouteRequest *)request
77 completion:(void (^)(TNKRideRouteSearchResult * _Nullable searchResult,
78 NSError * _Nullable error))completion;
79
80
81@end
82
83NS_ASSUME_NONNULL_END
TNKRideRouteSearchResult
骑行算路返回数据类
Definition: TNKRideCommonObj.h:76
TNKRouteRequest
算路请求类
Definition: TNKCommonObj.h:83
TNKSearchTask
路线规划任务类
Definition: TNKSearchTask.h:17