// // DDMANaviManager.h // DDMAMapKit_Private // Created by DDIsFriend on 2023/3/16. #import #import NS_ASSUME_NONNULL_BEGIN struct CLLocationCoordinate2D; @protocol DDAMapNaviCompositeManagerDelegate @optional - (void)dd_compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager didStartNavi:(AMapNaviMode)naviMode; - (void)dd_compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager onDriveStrategyChanged:(AMapNaviDrivingStrategy)driveStrategy; - (void)dd_compositeManagerOnCalculateRouteSuccess:(AMapNaviCompositeManager *_Nonnull)compositeManager; @end @interface DDMANaviManager : NSObject + (instancetype)shareManager; + (instancetype)new NS_UNAVAILABLE; - (instancetype)init NS_UNAVAILABLE; // 请在使用该类前先设置appkey + (void)startWithAppKey:(nullable NSString *)appKey; // 在创建该类实例前调用 + (void)agreePrivacy; @property (nonatomic, weak)id delegate; - (void)presentRoutePlanViewControllerFromCoordinate:(CLLocationCoordinate2D)fromCoordinate fromName:(nullable NSString *)fromName fromPOIId:(nullable NSString *)fromPOIId toCoordinate:(CLLocationCoordinate2D)toCoordinate toName:(nullable NSString *)toName toPOIId:(nullable NSString *)toPOIId startNaviDirectly:(BOOL)isDirectly; @end NS_ASSUME_NONNULL_END