TencentNavKit

TNKBaseNavManager.h
Go to the documentation of this file.
1//
2// TNKBaseNavManager.h
3// TencentNavKit
4//
5// Created by mol on 2022/7/26.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <TencentNavKit/TNKRerouteParam.h>
11#import <TencentNavKit/TNKAudioPlayerProtocol.h>
12#import <TencentNavKit/TNKLocationSimulator.h>
13
14NS_ASSUME_NONNULL_BEGIN
15
19 typedef enum _TNKWaypointRemovedStrategy
20{
22 TNKWaypointRemovedStrategyDefault = 0,
24 TNKWaypointRemovedStrategyManually = 1,
25} TNKWaypointRemovedStrategy;
26
28@interface TNKBaseNavManager : NSObject
29
30//- (instancetype)init __attribute__((unavailable("请使用各子类的sharedInstance方法， 导航管理类不再支持多实例")));;
31
35@property (nonatomic, readonly, getter=isRunning) BOOL running;
36
40@property (nonatomic, strong, nullable) id<TNKAudioPlayerProtocol> audioPlayer;
41
45@property (nonatomic, readonly) id<TNKLocationSimulator> locationSimulator;
46
52- (BOOL)startNavWithIndex:(NSUInteger)index;
53
59- (BOOL)startNavWithRouteID:(NSString *)routeID;
60
67- (BOOL)setNaveRoutePlanCacheSize:(int) routePlanCacheSize;
68
72- (void)stopNav;
73
78- (void)rerouteWithParam:(TNKRerouteParam *)rerouteParam;
79
80@end
81
82NS_ASSUME_NONNULL_END
TNKRerouteParam
重新算路参数基类
Definition: TNKRerouteParam.h:16