jsdw_ios/Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviDriveViewConfig.h

95 lines
4.1 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// AMapNaviDriveViewConfig.h
// AMapNaviKit
//
// Created by caowei on 2024/7/18.
// Copyright © 2024 Amap. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AMapNaviCommonObj.h"
//#import "AMapNaviCommonObj_Addition.h"
// @since 10.0.820
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, AMapNaviDriveViewState) {
AMapNaviDriveViewStateNone, // 设置此值无效 This setting is invalid
AMapNaviDriveViewStatePlan, // 行前 Before Departure
AMapNaviDriveViewStateNaving, //行中 En route
};
// 初始化driveView时生效 Takes effect when initializing driveView
// @since 10.0.820
@interface AMapNaviDriveViewConfig : NSObject
/// 默认为行中 AMapNaviDriveViewStateNaving 行前只支持竖屏需要用户在controller中适配 横竖屏
/// Default is in-route AMapNaviDriveViewStateNaving, pre-route only supports portrait mode, users need to adapt landscape\/portrait in the controller
@property(nonatomic, assign) AMapNaviDriveViewState state;
/**
* @brief 行中设置 当点击设置按钮时是否显示默认的设置面板。
* Inline Settings: Whether to display the default settings panel when the settings button is clicked.
* 默认值NO.
* Default Value: NO.
*/
@property(nonatomic, assign) BOOL showSettingView;
/**
* @brief 导航过程中是否显示底部的tips, 包括路线切换禁限行提示等默认值true 显示
* Whether to display the bottom tips during navigation, including: route switching, traffic restriction prompts, etc. Default value: true, display
*/
@property(nonatomic, assign) BOOL showNaviPopTips;
/**
* @brief 设置路径规划偏好策略页面是否显示. 默认为YES.
* Set whether the path planning preference strategy page is displayed. Default: YES.
*/
@property(nonatomic, assign) BOOL showDrivingStrategyPreferenceView;
/**
* @brief 行前: 设置行前规划页面是否展示限行图层 注意:当前接口为付费接口,使用当前接口需要 官网联系https://lbs.amap.com/ 商务
* Pre-Trip: Set whether the restricted driving layer is shown on the pre-trip planning page. Note: This API is a paid service. Contact the official website (https://lbs.amap.com/) for business inquiries.
* showRestrictareaEnable 组件是否显示限行图层默认为NO.
* Whether the component displays the traffic restriction layer, default is NO.
*/
@property(nonatomic, assign) BOOL showRestrictareaEnable;
/**
* @brief 设置驾车路径规划策略. 默认值 AMapNaviDrivingStrategyMultipleDefault .
* 如果要设置摩托车等非驾车策略需要在使用AmapNaviDriveView前设置车辆信息请参考AMapNaviDriveManager setVehicleInfo
* 参考 AMapNaviDrivingStrategy .
* Set the driving route planning strategy. Default value: AMapNaviDrivingStrategyMultipleDefault.
* If using non-driving strategies (e.g., motorcycle), set the vehicle information before initializing AmapNaviDriveView. Refer to AMapNaviDriveManager's setVehicleInfo method for details.
*/
@property(nonatomic, assign) AMapNaviDrivingStrategy drivingStrategy;
///是否显示起终途点\步行轮渡扎点\禁行限行图标\封路图标等, 默认为全显示.
///Whether to display start/end points, pedestrian/ferry stop points, prohibited driving restriction icons, closed road icons, etc. Defaults to all displayed.
@property (nonatomic, assign) AMapNaviRouteAnnoState showRouteAnnotation;
/**
* @brief 设置导航界面顶部信息是否展示随后转向图标. since 10.0.920
* Set whether to display the next turn icon at the top of the navigation interface. since 10.0.920
* @param showNextRoadInfo 是否展示随后转向图标默认为NO不展示.
* Whether to display the subsequent turn icon, default is NO, not displayed.
*/
@property (nonatomic, assign) BOOL showNextRoadInfo;
/**
* @brief 支持自定义屏幕scale sicne 10.5.2.03
* Support custom screen scale since 10.5.2.03
* @param scaleFactor,默认是0.0[sdk自动适配],支持范围(0.0-3.0)
* Default is 0.0 [SDK auto-adapts], supported range (0.0-3.0)
*/
@property (nonatomic, assign) CGFloat scaleFactor;
@end
NS_ASSUME_NONNULL_END