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
106- (void)driveNavManager:(TNKDriveNavManager *)manager didStartNavFail:(TNKNavStartFailInfo *)startFailInfo;
107
113- (void)driveNavManager:(TNKDriveNavManager *)manager
114 rerouteDidSuccess:(TNKDriveRerouteResult *)rerouteresult;
115
121- (void)driveNavManager:(TNKDriveNavManager *)manager
122 rerouteDidFail:(TNKDriveRerouteResult *)rerouteresult;
123
129- (void)driveNavManager:(TNKDriveNavManager *)manager
130 rerouteDidInFence:(TNKRerouteReason)rerouteReason;
131
137- (void)driveNavManagerDidUpdateRotueTraffic:(TNKDriveNavManager *)manager;
138
145- (void)driveNavManager:(TNKDriveNavManager *)manager updateParallelRoadStatus:(TNKParallelRoadStatus *)parallelRoadStatus;
146
153- (void)driveNavManager:(TNKDriveNavManager *)manager showGuidedLaneInfo:(TNKLaneInfo *)laneInfo;
154
159- (void)driveNavManagerHideGuidedLaneInfo:(TNKDriveNavManager *)manager;
160
167- (void)driveNavManager:(TNKDriveNavManager *)manager
168 didDeleteBackupRoutes:(NSArray<NSString *> *)deletedRouteIDs;
169
170
177- (void)driveNavManager:(TNKDriveNavManager *)manager
178 didAddBackupRoutes:(NSArray<TNKDriveRoute *> *)backupRoutes;
179
187- (void)driveNavManager:(TNKDriveNavManager *)manager
188 routeDidChange:(TNKDriveNavRoute *)navRoute
189 changeRouteMsg:(TNKChangeRouteMsg *)msg;
190
197- (void)driveNavManager:(TNKDriveNavManager *)manager didEnterIdleSection:(TNKIdleSectionInfo *)idleSectionInfo;
198
205- (void)driveNavManager:(TNKDriveNavManager *)manager showRecommendedRouteInfo:(TNKRecommendRouteInfo *)recommendRouteInfo;
206
207
213- (void)driveNavManager:(TNKDriveNavManager *)manager
214 didArriveWaypointInfo:(TNKNavToWayPointInfo *)waypointInfo;
215
221- (void)driveNavManager:(TNKDriveNavManager *)manager didUpdateTollStationInfo:(TNKTollStationInfo *)tollStationInfo;
222
228- (void)driveNavManager:(TNKDriveNavManager *)manager didUpdateTrafficJamInfo:(TNKTrafficJamInfo * _Nullable)trafficJamInfo;
229
235- (void)driveNavManager:(TNKDriveNavManager *)manager didUpdateCameraInfo:(NSArray<TNKNavCameraInfo *> *)navCameras;
236
237@end
238
239NS_ASSUME_NONNULL_END
TNKRerouteReason
enum _TNKRerouteReason TNKRerouteReason
重新算路类型.
TNKChangeRouteMsg
主路变化信息
Definition: TNKChangeRouteMsg.h:27
TNKDriveRerouteResult
驾车重新算路结果
Definition: TNKRerouteCommon.h:36
TNKDriveRoute
算路的路线数据类
Definition: TNKDriveCommonObj.h:349
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