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 - Lane Navi
64#pragma mark - Event Listener
72- (void)addEventListener:(
id<AMapNaviDriveManagerDelegate>)aListener;
80- (void)removeEventListener:(
id<AMapNaviDriveManagerDelegate>)aListener;
82#pragma mark - Data Representative
90- (void)addDataRepresentative:(
id<AMapNaviDriveDataRepresentable>)aRepresentative;
98- (void)removeDataRepresentative:(
id<AMapNaviDriveDataRepresentable>)aRepresentative;
110+ (void)pushTrajectoryRestoration:(NSArray<
AMapNaviPoint *> *)wayPoints tracePoints:(NSArray<
AMapNaviPoint *> *)tracePoints vehicleType:(NSInteger)vehicleType drivingStrategy:(
AMapNaviDrivingStrategy)drivingStrategy resultCallback:(
void(^)(BOOL isLoadSuc))resultCallback;
112#pragma mark - Navi Route
124@property (nonatomic, readonly, nullable) NSArray<NSNumber *> *
naviRouteIDs;
128@property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *
naviRoutes;
138- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
154- (void)setMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
162- (void)setTruckMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
164#pragma mark - Options
170@property (nonatomic, assign) BOOL
updateCameraInfo __attribute__((deprecated(
"Deprecated, since 10.0.820")));
190- (void)setIsOpenTrafficLight:(NSString *)key;
192#pragma mark - Calculate Route
209- (BOOL)calculateDriveRouteWithEndPoints:(NSArray<
AMapNaviPoint *> *)endPoints
227- (BOOL)calculateDriveRouteWithStartPoints:(NSArray<
AMapNaviPoint *> *)startPoints
251- (BOOL)calculateDriveRouteWithStartPOIInfos:(NSArray<
AMapNaviPOIInfo *> *)startPOIInfos
271- (BOOL)calculateDriveRouteWithStartPointPOIId:(nullable NSString *)startPOIId
272 endPointPOIId:(nonnull NSString *)endPOIId
273 wayPointsPOIId:(nullable NSArray<NSString *> *)wayPOIIds
289- (BOOL)calculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
309- (BOOL)calculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
330- (BOOL)calculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
353- (BOOL)independentCalculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
357 callback:(nullable
void (^)(
AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
376- (BOOL)independentCalculateDriveRouteWithStartPOIInfo:(nullable
AMapNaviPOIInfo *)startPOIInfo
380 callback:(nullable
void (^)(
AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
415- (void)setVehicleProvince:(NSString *)province number:(NSString *)number __attribute__((deprecated("Deprecated, please use setVehicleInfo: instead, since 6.0.0")));
451#pragma mark - Traffic Status
463- (nullable NSArray<
AMapNaviTrafficStatus *> *)getTrafficStatusesWithStartPosition:(
int)startPosition distance:(
int)distance;
473#pragma mark - Xcode Simulate Location
481- (void)setXcodeSimulateLocationEnable:(BOOL)enableNavi __attribute__((deprecated("Deprecated, since 7.5.0")));
483#pragma mark - 服务区详情信息 Service area details
492- (void)setServiceAreaDetailsEnable:(BOOL)enable;
494#pragma mark - push路线相关 push route related
510- (BOOL)pushDriveRouteWithRouteGuideData:(nonnull NSData *)routeData
545@interface AMapNaviDriveManager (Escort)
556- (BOOL)setEscortMissonID:(NSNumber *)missonID;
560#pragma mark - Private
562@interface AMapNaviDriveManager (Private)
567+ (BOOL)setCustomCloudControlEnable:(BOOL)enable;
572- (BOOL)setExtenalCloudControl:(nullable NSString *)cloudControlString;
629- (BOOL)getRestrictareaInfoInRoute:(
AMapNaviRoute *)route callback:(nonnull
void (^)(BOOL responseSuccess, NSString *responseData, NSString *errorDesc))callback;
633#pragma mark - AMapNaviDriveManagerDelegate
634@protocol AMapNaviDriveManagerDelegate <NSObject>
684- (void)driveManager:(
AMapNaviDriveManager *)driveManager onCalculateRouteFailure:(NSError *)error;
865- (void)driveManager:(
AMapNaviDriveManager *_Nullable)manager onUpdateNaviSpeedLimitSection:(NSInteger)speed;
AMapNaviBroadcastMode
Definition AMapNaviCommonObj.h:300
AMapNaviGPSSignalStrength
Definition AMapNaviCommonObj.h:369
AMapNaviOnlineCarHailingType
Definition AMapNaviCommonObj.h:480
AMapNaviRoutePlanType
Definition AMapNaviCommonObj.h:387
AMapNaviMode
Definition AMapNaviCommonObj.h:48
AMapNaviDrivingStrategy
Definition AMapNaviCommonObj.h:82
AMapNaviDetectedMode
Definition AMapNaviCommonObj.h:230
AMapNaviRingType
Definition AMapNaviCommonObj.h:357
AMapNaviSoundType
Definition AMapNaviCommonObj.h:219
Definition AMapNaviBaseManager.h:26
Definition AMapNaviCommonObj.h:1910
Definition AMapNaviRoute.h:325
Definition AMapNaviCommonObj.h:1449
Definition AMapNaviCommonObj.h:1485
Definition AMapNaviDriveManager.h:22
BOOL updateCameraInfo
Definition AMapNaviDriveManager.h:170
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:116
NSUInteger gpsWeakDetecedInterval
Definition AMapNaviDriveManager.h:186
BOOL laneNaviEnabled
是否开启摩托车车道级导航,默认开启。建议在算路前设置,仅适用于摩托车,不影响驾车、货车导航。 Whether motorcycle lane-level navigation is enabled....
Definition AMapNaviDriveManager.h:62
AMapNaviDriveManager * sharedInstance()
AMapNaviDriveManager单例。注意:如果已经获取了AMapNaviRideManager、AMapNaviWalkManager单例,需要调用对应的destroyInstance方法销毁...
instancetype init()
请使用单例替代. since 5.4.0 init已被禁止使用,请使用单例 [AMapNaviDriveManager sharedInstance] 替代,且在调用类的 dealloc 函数或其他适当...
NSDictionary< NSNumber *, AMapNaviRoute * > * naviRoutes
Definition AMapNaviDriveManager.h:128
NSString *_Nullable routeSDKVersion()
获得 routeService 版本号。 Get the version number of routeService
AMapNaviRoute * naviRoute
Definition AMapNaviDriveManager.h:120
BOOL updateTrafficInfo
Definition AMapNaviDriveManager.h:174
id< AMapNaviDriveManagerDelegate > delegate
Definition AMapNaviDriveManager.h:51
AMapNaviDetectedMode detectedMode
Definition AMapNaviDriveManager.h:178
NSString *_Nullable getPushDataNaviVersion()
获取导航路线还原版本号。since 9.0.0 Get navigation route restoration version number
NSArray< NSNumber * > * naviRouteIDs
Definition AMapNaviDriveManager.h:124
AMapNaviGPSSignalStrength gpsSignalStrength
Definition AMapNaviDriveManager.h:182
nullable NSArray< AMapNaviTrafficStatus * > * getTrafficStatuses()
获取当前道路的路况光柱信息 Get the traffic light column information of the current road
Definition AMapNaviCommonObj.h:1601
Definition AMapNaviCommonObj.h:1344
Definition AMapNaviCommonObj.h:1368
Definition AMapNaviCommonObj.h:632
Definition AMapNaviRoute.h:335
Definition AMapNaviRoute.h:186
Definition AMapNaviCommonObj.h:1208
Definition AMapNaviCommonObj.h:1288
Definition AMapNaviCommonObj.h:1630
前方交通路况信息类 Traffic condition information class ahead
Definition AMapNaviCommonObj.h:740
Definition AMapNaviCommonObj.h:1070