TencentNavKit

Instance Methods | Properties | List of all members
TNKBaseNavManager Class Reference

导航管理基础类 More...

`#import <TNKBaseNavManager.h>`

Inheritance diagram for TNKBaseNavManager:

## Instance Methods
(BOOL) | - startNavWithIndex:
| 启动导航. 需要在驾车导航路线规划成功后进行. More...
(BOOL) | - startNavWithRouteID:
| 启动导航. 需要在驾车导航路线规划成功后进行. More...
(BOOL) | - setNaveRoutePlanCacheSize:
| 设置路径规划缓存数 [1, 8]，默认 1. More...
(void) | - stopNav
| 结束导航. More...
(void) | - rerouteWithParam:
| 重新算路方法 More...

## Properties
BOOL | running
| 导航控制器是否在工作中，包含导航状态+偏航状态 More...
id< TNKAudioPlayerProtocol > | audioPlayer
| 导航播报的播放器。开发者如需SDK内置播报，需赋值[TNKAudioPlayer sharedAudioPlayer]对象至该属性 More...
id< TNKLocationSimulator > | locationSimulator
| 定位点模拟器，用于测试。 More...

## Detailed Description

导航管理基础类

## Method Documentation

## ◆ rerouteWithParam:

- (void) rerouteWithParam: |  | (TNKRerouteParam *) | rerouteParam |

重新算路方法

Parameters

  rerouteParam | 重新算路参数

## ◆ setNaveRoutePlanCacheSize:

- (BOOL) setNaveRoutePlanCacheSize: |  | (int) | routePlanCacheSize |

设置路径规划缓存数 [1, 8]，默认 1.

Since
  6.7.5

Parameters

  routePlanCacheSize | 个数.

Returns
  是否成功

## ◆ startNavWithIndex:

- (BOOL) startNavWithIndex: |  | (NSUInteger) | index |

启动导航. 需要在驾车导航路线规划成功后进行.

Parameters

  index | 路线索引. 与路线规划返回的路线结果顺序一致.

Returns
  是否成功

## ◆ startNavWithRouteID:

- (BOOL) startNavWithRouteID: |  | (NSString *) | routeID |

启动导航. 需要在驾车导航路线规划成功后进行.

Parameters

  routeID | 路线ID.

Returns
  是否成功

## ◆ stopNav

- (void) stopNav |  |  |

结束导航.

## Property Documentation

## ◆ audioPlayer

- (id<TNKAudioPlayerProtocol>) audioPlayer
| read write nonatomic strong

导航播报的播放器。开发者如需SDK内置播报，需赋值[TNKAudioPlayer sharedAudioPlayer]对象至该属性

## ◆ locationSimulator

- (id<TNKLocationSimulator>) locationSimulator
| read nonatomic assign

定位点模拟器，用于测试。

## ◆ running

- (BOOL) running
| read nonatomic assign

导航控制器是否在工作中，包含导航状态+偏航状态

The documentation for this class was generated from the following file:

- TNKBaseNavManager.h