87 lines
2.9 KiB
Objective-C
87 lines
2.9 KiB
Objective-C
//
|
||
// AMapNaviManagerConfig.h
|
||
// AMapNaviManagerConfig
|
||
//
|
||
// Created by yuanmenglong on 2021/8/25.
|
||
// Copyright © 2021 Amap. All rights reserved.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
#import <AMapFoundationKit/AMapServices.h>
|
||
#import "AMapNaviCommonObj.h"
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
@interface AMapNaviManagerConfig : NSObject
|
||
|
||
@property (nonatomic, assign) BOOL customviewShowViaEtaEnable;
|
||
|
||
/**
|
||
* @brief AMapNaviManagerConfig单例. since 8.0.1
|
||
* AMapNaviManagerConfig singleton
|
||
* @return AMapNaviManagerConfig实例
|
||
* AMapNaviManagerConfig instance
|
||
*/
|
||
+ (instancetype)sharedConfig;
|
||
|
||
|
||
|
||
/**
|
||
* @brief 设置是否使用CMAltimeter相关接口, 如果配置使用则需要设置NSMotionUsageDescription
|
||
* you must include the NSMotionUsageDescription key in your app’s Info.plist
|
||
* https://developer.apple.com/documentation/coremotion/cmaltimeter
|
||
* 需要在使用 AMapNaviDriveManager 相关接口前设置 生效
|
||
*
|
||
* 默认关闭
|
||
*/
|
||
@property(nonatomic, assign) BOOL cmaltimeterEnable;
|
||
|
||
/**
|
||
在导航视图底部区域显示到达最近途经点的ETA信息,默认为NO
|
||
@since 10.0.923
|
||
*/
|
||
@property (nonatomic, assign) BOOL showViaEta;
|
||
|
||
/**
|
||
* @brief 内置语音播报速度,默认值为AVSpeechUtteranceDefaultSpeechRate,
|
||
* 注意该值需要在AVSpeechUtteranceMinimumSpeechRate 和 AVSpeechUtteranceMaximumSpeechRate之间
|
||
*@since 10.0.923
|
||
*/
|
||
@property(nonatomic,assign) float speechRate;
|
||
|
||
#pragma mark - Privacy 隐私合规
|
||
/**
|
||
* @brief 更新App是否显示隐私弹窗的状态,隐私弹窗是否包含高德SDK隐私协议内容的状态,注意:必须在导航任何一个manager实例化之前调用. since 8.1.0
|
||
* Update the status of whether the app displays a privacy popup and whether the privacy popup includes the content of the Amap SDK privacy agreement. Note: This must be called before initializing any manager instance in navigation.
|
||
* @param showStatus 隐私弹窗状态
|
||
* Privacy popup status
|
||
* @param containStatus 包含高德SDK隐私协议状态
|
||
* Includes AMap SDK privacy agreement status
|
||
*/
|
||
- (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
|
||
|
||
/**
|
||
* @brief 更新用户授权高德SDK隐私协议状态,注意:必须在导航任何一个manager实例化之前调用. since 8.1.0
|
||
* Update the user authorization status for the AutoNavi SDK privacy agreement. Note: This must be called before initializing any manager instance in navigation
|
||
* @param agreeStatus 用户授权高德SDK隐私协议状态
|
||
* User authorization status for the AutoNavi SDK privacy agreement
|
||
*/
|
||
- (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
|
||
|
||
@end
|
||
|
||
#pragma mark - Private
|
||
|
||
@interface AMapNaviManagerConfig (Private)
|
||
|
||
/**
|
||
* @brief 设置途径点私有实例接口,外部禁止调用. since 7.9.0
|
||
* Set private instance interface for waypoints, external calls are prohibited.
|
||
*/
|
||
- (void)setViaPointEtaDisplayEnable:(BOOL )isEnable;
|
||
|
||
- (BOOL)isShowViaEta;
|
||
@end
|
||
|
||
|
||
NS_ASSUME_NONNULL_END
|