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
37@property (nonatomic, weak, nullable) id<TNKRideNavDataSource> navDataSource;
38
42@property (nonatomic, assign) TNKRideVehicleType vehicleType;
43
51- (void)registerNavDelegate:(id<TNKRideNavDelegate>)navDelegate;
52
57- (void)unregisterNavDelegate:(id<TNKRideNavDelegate>)navDelegate;
58
62- (void)unregisterAllNavDelegates;
63
64
65
69- (TNKSearchTask * _Nullable)searchRoutesWithRequest:(TNKRouteRequest *)request
70 completion:(void (^)(TNKRideRouteSearchResult * _Nullable searchResult,
71 NSError * _Nullable error))completion;
72
73
74@end
75
76NS_ASSUME_NONNULL_END
TNKRideRouteSearchResult
骑行算路返回数据类
Definition: TNKRideCommonObj.h:76
TNKRouteRequest
算路请求类
Definition: TNKCommonObj.h:83
TNKSearchTask
路线规划任务类
Definition: TNKSearchTask.h:17