TencentNavKit

TNKDriveNavDelegate.h
Go to the documentation of this file.
1//
2// TNKDriveNavDelegate.h
3// TencentNavKit
4//
5// Created by mol on 2022/10/9.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <TencentNavKit/TNKRerouteCommon.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14@class TNKDriveNavManager,
15 TNKLocation,
16 TNKGpsStatus,
17 TNKDriveNavRoute,
18 TNKDriveRoute,
19 TNKDriveNavigationData,
20 TNKDriveRerouteResult,
21 TNKLaneInfo,
22 TNKParallelRoadStatus,
23 TNKChangeRouteMsg,
24 TNKIdleSectionInfo,
25 TNKRecommendRouteInfo,
26 TNKNavToWayPointInfo,
27 TNKTrafficJamInfo,
28 TNKTollStationInfo,
29 TNKNavCameraInfo,
30 TNKNavStartFailInfo,
31 TNKNavRestrictionInfo;
32
34@protocol TNKDriveNavDelegate <NSObject>
35
36@optional
41- (void)driveNavManagerDidStart:(TNKDriveNavManager *)manager;
42
47- (void)driveNavManagerDidStop:(TNKDriveNavManager *)manager;
48
54- (void)driveNavManagerOnNavigationDataReady:(TNKDriveNavManager *)manager
55 nav_session_id:(NSString *)nav_session_id
56 success:(BOOL)success;
57
62- (void)driveNavManagerWillArriveDestination:(TNKDriveNavManager *)manager;
63
69- (void)driveNavManager:(TNKDriveNavManager *)manager updateNavigationData:(TNKDriveNavigationData *)navigationData;
70
76- (void)driveNavManager:(TNKDriveNavManager *)manager
77 didUpdateLocation:(TNKLocation *)location;
78
84- (void)driveNavManager:(TNKDriveNavManager *)manager updateLocationFailedWithError:(NSError *)error;
85
91- (void)driveNavManager:(TNKDriveNavManager *)manager gpsStatusDidChange:(TNKGpsStatus *)gpsStatus;
92
93
99- (void)driveNavManager:(TNKDriveNavManager *)manager didStartRerouting:(TNKRerouteReason)rerouteReason;
100
101
107- (void)driveNavManager:(TNKDriveNavManager *)manager didOnOffRoute:(TNKRerouteReason)rerouteReason;
108
114- (void)driveNavManager:(TNKDriveNavManager *)manager didStartNavFail:(TNKNavStartFailInfo *)startFailInfo;
115
121- (void)driveNavManager:(TNKDriveNavManager *)manager
122 rerouteDidSuccess:(TNKDriveRerouteResult *)rerouteresult;
123
129- (void)driveNavManager:(TNKDriveNavManager *)manager
130 rerouteDidFail:(TNKDriveRerouteResult *)rerouteresult;
131
137- (void)driveNavManager:(TNKDriveNavManager *)manager
138 rerouteDidInFence:(TNKRerouteReason)rerouteReason;
139
145- (void)driveNavManagerDidUpdateRotueTraffic:(TNKDriveNavManager *)manager;
146
153- (void)driveNavManager:(TNKDriveNavManager *)manager updateParallelRoadStatus:(TNKParallelRoadStatus *)parallelRoadStatus;
154
161- (void)driveNavManager:(TNKDriveNavManager *)manager showGuidedLaneInfo:(TNKLaneInfo *)laneInfo;
162
167- (void)driveNavManagerHideGuidedLaneInfo:(TNKDriveNavManager *)manager;
168
175- (void)driveNavManager:(TNKDriveNavManager *)manager
176 didDeleteBackupRoutes:(NSArray<NSString *> *)deletedRouteIDs;
177
178
185- (void)driveNavManager:(TNKDriveNavManager *)manager
186 didAddBackupRoutes:(NSArray<TNKDriveRoute *> *)backupRoutes;
187
195- (void)driveNavManager:(TNKDriveNavManager *)manager
196 routeDidChange:(TNKDriveNavRoute *)navRoute
197 changeRouteMsg:(TNKChangeRouteMsg *)msg;
198
205- (void)driveNavManager:(TNKDriveNavManager *)manager didEnterIdleSection:(TNKIdleSectionInfo *)idleSectionInfo;
206
213- (void)driveNavManager:(TNKDriveNavManager *)manager showRecommendedRouteInfo:(TNKRecommendRouteInfo *)recommendRouteInfo;
214
215
221- (void)driveNavManager:(TNKDriveNavManager *)manager
222 didArriveWaypointInfo:(TNKNavToWayPointInfo *)waypointInfo;
223
229- (void)driveNavManager:(TNKDriveNavManager *)manager didUpdateTollStationInfo:(TNKTollStationInfo *)tollStationInfo;
230
236- (void)driveNavManager:(TNKDriveNavManager *)manager didUpdateTrafficJamInfo:(TNKTrafficJamInfo * _Nullable)trafficJamInfo;
237
243- (void)driveNavManager:(TNKDriveNavManager *)manager didUpdateCameraInfo:(NSArray<TNKNavCameraInfo *> *)navCameras;
244
245@end
246
247NS_ASSUME_NONNULL_END
TNKRerouteReason
enum _TNKRerouteReason TNKRerouteReason
重新算路类型.
TNKChangeRouteMsg
主路变化信息
Definition: TNKChangeRouteMsg.h:27
TNKDriveRerouteResult
驾车重新算路结果
Definition: TNKRerouteCommon.h:37
TNKDriveRoute
算路的路线数据类
Definition: TNKDriveCommonObj.h:426
TNKGpsStatus
gps状态信息
Definition: TNKGpsStatus.h:21
TNKIdleSectionInfo
进入空闲区间的信息
Definition: TNKIdleSectionInfo.h:21
TNKLaneInfo
车道线信息
Definition: TNKLaneInfo.h:16
TNKLocation
导航的定位信息.
Definition: TNKLocation.h:19
TNKParallelRoadStatus
平行路状态。
Definition: TNKParallelRoadStatus.h:18
TNKRecommendRouteInfo
推荐新路线信息
Definition: TNKRecommendRouteInfo.h:15
TNKTollStationInfo
途经的收费站信息
Definition: TNKTollStationInfo.h:29
TNKTrafficJamInfo
前方拥堵信息
Definition: TNKTrafficJamInfo.h:17