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
17@interface TNKBaseNavManager : NSObject
18
19//- (instancetype)init __attribute__((unavailable("请使用各子类的sharedInstance方法, 导航管理类不再支持多实例")));;
20
24@property (nonatomic, readonly, getter=isRunning) BOOL running;
25
29@property (nonatomic, strong, nullable) id<TNKAudioPlayerProtocol> audioPlayer;
30
34@property (nonatomic, readonly) id<TNKLocationSimulator> locationSimulator;
35
41- (BOOL)startNavWithIndex:(NSUInteger)index;
42
48- (BOOL)startNavWithRouteID:(NSString *)routeID;
49
56- (BOOL)setNaveRoutePlanCacheSize:(int) routePlanCacheSize;
57
61- (void)stopNav;
62
67- (void)rerouteWithParam:(TNKRerouteParam *)rerouteParam;
68
69@end
70
71NS_ASSUME_NONNULL_END
导航管理基础类
Definition: TNKBaseNavManager.h:18
void stopNav()
结束导航.
id< TNKLocationSimulator > locationSimulator
定位点模拟器,用于测试。
Definition: TNKBaseNavManager.h:34
BOOL running
导航控制器是否在工作中,包含导航状态+偏航状态
Definition: TNKBaseNavManager.h:24
id< TNKAudioPlayerProtocol > audioPlayer
导航播报的播放器。开发者如需SDK内置播报,需赋值[TNKAudioPlayer sharedAudioPlayer]对象至该属性
Definition: TNKBaseNavManager.h:29
重新算路参数基类
Definition: TNKRerouteParam.h:16