13NS_ASSUME_NONNULL_BEGIN
15@protocol AMapNaviDriveManagerDelegate;
17#pragma mark - AMapNaviDriveManager
23#pragma mark - Singleton
45- (instancetype)
init __attribute__((unavailable("Since 5.4.0,
init has been deprecated, please use the singleton [
AMapNaviDriveManager sharedInstance] instead. And call [
AMapNaviDriveManager destroyInstance] to destroy the singleton when calling the dealloc function of the class or at other appropriate times (such as when the navigation ViewController is popped). (Note: If the destruction fails, check if the singleton is strongly referenced)")));
47#pragma mark - Delegate
51@property (nonatomic, weak) id<AMapNaviDriveManagerDelegate>
delegate;
53#pragma mark - Event Listener
61- (void)addEventListener:(
id<AMapNaviDriveManagerDelegate>)aListener;
69- (void)removeEventListener:(
id<AMapNaviDriveManagerDelegate>)aListener;
71#pragma mark - Data Representative
79- (void)addDataRepresentative:(
id<AMapNaviDriveDataRepresentable>)aRepresentative;
87- (void)removeDataRepresentative:(
id<AMapNaviDriveDataRepresentable>)aRepresentative;
99+ (void)pushTrajectoryRestoration:(NSArray<
AMapNaviPoint *> *)wayPoints tracePoints:(NSArray<
AMapNaviPoint *> *)tracePoints vehicleType:(NSInteger)vehicleType drivingStrategy:(
AMapNaviDrivingStrategy)drivingStrategy resultCallback:(
void(^)(BOOL isLoadSuc))resultCallback;
101#pragma mark - Navi Route
113@property (nonatomic, readonly, nullable) NSArray<NSNumber *> *
naviRouteIDs;
117@property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *
naviRoutes;
127- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
143- (void)setMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
151- (void)setTruckMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
153#pragma mark - Options
159@property (nonatomic, assign) BOOL
updateCameraInfo __attribute__((deprecated(
"Deprecated, since 10.0.820")));
179- (void)setIsOpenTrafficLight:(NSString *)key;
181#pragma mark - Calculate Route
198- (BOOL)calculateDriveRouteWithEndPoints:(NSArray<
AMapNaviPoint *> *)endPoints
216- (BOOL)calculateDriveRouteWithStartPoints:(NSArray<
AMapNaviPoint *> *)startPoints
240- (BOOL)calculateDriveRouteWithStartPOIInfos:(NSArray<
AMapNaviPOIInfo *> *)startPOIInfos
260- (BOOL)calculateDriveRouteWithStartPointPOIId:(nullable NSString *)startPOIId
261 endPointPOIId:(nonnull NSString *)endPOIId
262 wayPointsPOIId:(nullable NSArray<NSString *> *)wayPOIIds
278- (BOOL)calculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
298- (BOOL)calculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
319- (BOOL)calculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
342- (BOOL)independentCalculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
346 callback:(nullable
void (^)(
AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
365- (BOOL)independentCalculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
369 callback:(nullable
void (^)(
AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
404- (void)setVehicleProvince:(NSString *)province number:(NSString *)number __attribute__((deprecated("Deprecated, please use setVehicleInfo: instead, since 6.0.0")));
436#pragma mark - Traffic Status
448- (nullable NSArray<
AMapNaviTrafficStatus *> *)getTrafficStatusesWithStartPosition:(
int)startPosition distance:(
int)distance;
458#pragma mark - Xcode Simulate Location
466- (void)setXcodeSimulateLocationEnable:(BOOL)enableNavi __attribute__((deprecated("Deprecated, since 7.5.0")));
468#pragma mark - 服务区详情信息 Service area details
477- (void)setServiceAreaDetailsEnable:(BOOL)enable;
479#pragma mark - push路线相关 push route related
495- (BOOL)pushDriveRouteWithRouteGuideData:(nonnull NSData *)routeData
530@interface AMapNaviDriveManager (Escort)
541- (BOOL)setEscortMissonID:(NSNumber *)missonID;
545#pragma mark - Private
547@interface AMapNaviDriveManager (Private)
552+ (BOOL)setCustomCloudControlEnable:(BOOL)enable;
557- (BOOL)setExtenalCloudControl:(nullable NSString *)cloudControlString;
614- (BOOL)getRestrictareaInfoInRoute:(
AMapNaviRoute *)route callback:(nonnull
void (^)(BOOL responseSuccess, NSString *responseData, NSString *errorDesc))callback;
618#pragma mark - AMapNaviDriveManagerDelegate
619@protocol AMapNaviDriveManagerDelegate <NSObject>
669- (void)driveManager:(
AMapNaviDriveManager *)driveManager onCalculateRouteFailure:(NSError *)error;
850- (void)driveManager:(
AMapNaviDriveManager *_Nullable)manager onUpdateNaviSpeedLimitSection:(NSInteger)speed;
AMapNaviBroadcastMode
Definition AMapNaviCommonObj.h:282
AMapNaviGPSSignalStrength
Definition AMapNaviCommonObj.h:351
AMapNaviOnlineCarHailingType
Definition AMapNaviCommonObj.h:462
AMapNaviRoutePlanType
Definition AMapNaviCommonObj.h:369
AMapNaviMode
Definition AMapNaviCommonObj.h:38
AMapNaviDrivingStrategy
Definition AMapNaviCommonObj.h:72
AMapNaviDetectedMode
Definition AMapNaviCommonObj.h:212
AMapNaviRingType
Definition AMapNaviCommonObj.h:339
AMapNaviSoundType
Definition AMapNaviCommonObj.h:201
Definition AMapNaviBaseManager.h:25
Definition AMapNaviCommonObj.h:1822
Definition AMapNaviRoute.h:325
Definition AMapNaviCommonObj.h:1431
Definition AMapNaviCommonObj.h:1467
Definition AMapNaviDriveManager.h:22
BOOL updateCameraInfo
Definition AMapNaviDriveManager.h:159
NSString *_Nullable routeServerVersion()
获得 routeServer 版本号。 Get the version number of routeServer
BOOL destroyInstance()
销毁AMapNaviDriveManager单例. AMapNaviDriveManager内存开销比较大,建议不使用时可销毁. since 5.4.0 Destroy the AMapNaviDriv...
NSInteger naviRouteID
Definition AMapNaviDriveManager.h:105
NSUInteger gpsWeakDetecedInterval
Definition AMapNaviDriveManager.h:175
AMapNaviDriveManager * sharedInstance()
AMapNaviDriveManager单例。注意:如果已经获取了AMapNaviRideManager、AMapNaviWalkManager单例,需要调用对应的destroyInstance方法销毁...
instancetype init()
请使用单例替代. since 5.4.0 init已被禁止使用,请使用单例 [AMapNaviDriveManager sharedInstance] 替代,且在调用类的 dealloc 函数或其他适当...
NSDictionary< NSNumber *, AMapNaviRoute * > * naviRoutes
Definition AMapNaviDriveManager.h:117
NSString *_Nullable routeSDKVersion()
获得 routeService 版本号。 Get the version number of routeService
AMapNaviRoute * naviRoute
Definition AMapNaviDriveManager.h:109
BOOL updateTrafficInfo
Definition AMapNaviDriveManager.h:163
id< AMapNaviDriveManagerDelegate > delegate
Definition AMapNaviDriveManager.h:51
AMapNaviDetectedMode detectedMode
Definition AMapNaviDriveManager.h:167
NSString *_Nullable getPushDataNaviVersion()
获取导航路线还原版本号。since 9.0.0 Get navigation route restoration version number
NSArray< NSNumber * > * naviRouteIDs
Definition AMapNaviDriveManager.h:113
AMapNaviGPSSignalStrength gpsSignalStrength
Definition AMapNaviDriveManager.h:171
nullable NSArray< AMapNaviTrafficStatus * > * getTrafficStatuses()
获取当前道路的路况光柱信息 Get the traffic light column information of the current road
Definition AMapNaviCommonObj.h:1583
Definition AMapNaviCommonObj.h:1326
Definition AMapNaviCommonObj.h:1350
Definition AMapNaviCommonObj.h:614
Definition AMapNaviRoute.h:335
Definition AMapNaviRoute.h:186
Definition AMapNaviCommonObj.h:1190
Definition AMapNaviCommonObj.h:1270
前方交通路况信息类 Traffic condition information class ahead
Definition AMapNaviCommonObj.h:722
Definition AMapNaviCommonObj.h:1052