public class NaviSetting
extends java.lang.Object
AMapNavi.getNaviSetting()获取实例AMapNavi.getNaviSetting()| 限定符和类型 | 方法和说明 |
|---|---|
int |
getEtaShowMode()
获取ETA信息显示模式
Get ETA information display mode |
boolean |
isFilterShowCrossMessage()
是否过滤路口大图回调消息
Whether to filter intersection large image callback messages |
boolean |
isScreenAlwaysBright()
屏幕是否常亮,默认开启
Whether the screen is always bright, enabled by default |
boolean |
isTrafficInfoUpdateEnabled()
已过时。
|
boolean |
isTrafficStatusUpdateEnabled()
已过时。
|
void |
setEtaShowMode(int etaShowMode)
设置ETA信息显示模式
Set ETA information display mode |
void |
SetFilterShowCrossMessageStatus(boolean isFilterMsg)
设置是否过滤路口大图外部回调消息,避免鹰巢和自定义路口大图同时存在,导致引擎异常
Set whether to filter external callback messages of intersection large images to avoid engine exceptions caused by Eagle Nest and custom intersection large images existing at the same time |
void |
setMonitorCameraEnabled(boolean monitorCameraEnabled)
HUD模式下,设置限速信息是否显示
Set whether speed limit information is displayed in HUD mode |
void |
setOpenNextRoadInfo(boolean open)
已过时。
导航组件请使用
AmapNaviParams.setSecondActionVisible(boolean);For navigation components, please use AmapNaviParams.setSecondActionVisible(boolean);导航自定义视图请使用 AMapNaviViewOptions.setSecondActionVisible(boolean)For navigation custom views, please use AMapNaviViewOptions.setSecondActionVisible(boolean) |
void |
setScreenAlwaysBright(boolean isAlwaysBright)
设置屏幕是否常亮,默认开启
Set whether the screen is always bright, enabled by default |
void |
setTrafficInfoUpdateEnabled(boolean enable)
|
void |
setTrafficStatusUpdateEnabled(boolean enable)
|
static void |
updatePrivacyAgree(Context context,
boolean isAgree)
设置是否同意用户授权政策 必须在AmapLocationClient实例化之前调用
Set whether to agree to the user authorization policy Must be called before AmapLocationClient instantiation |
static void |
updatePrivacyShow(Context context,
boolean isContains,
boolean isShow)
设置包含隐私政策,并展示用户授权弹窗 必须在AmapLocationClient实例化之前调用
Set to include privacy policy and display user authorization popup Must be called before AmapLocationClient instantiation |
public int getEtaShowMode()
public void setEtaShowMode(int etaShowMode)
etaShowMode - public boolean isTrafficStatusUpdateEnabled()
需要动态交通信息相关功能时需要调用此接口打开交通信息功能,默认动态交通功能是开启的,
打开后会每2分钟请求一次新的交通信息来更新交通信息。关闭动态交通信息后,使用交通信息的相关功能将无法正常使用,关闭后不再进行TMC信息请求。
When dynamic traffic information related functions are needed, this interface needs to be called to open the traffic information function. The default dynamic traffic function is enabled,
After opening, new traffic information will be requested every 2 minutes to update traffic information. After closing dynamic traffic information, related functions using traffic information will not be able to work properly, and TMC information requests will no longer be made after closing.
public void setTrafficStatusUpdateEnabled(boolean enable)
AMapNavi.setTrafficStatusUpdateEnabled(boolean)AMapNavi.setTrafficStatusUpdateEnabled(boolean)
需要动态交通信息相关功能时需要调用此接口打开交通信息功能,默认是开启的,
打开后会每1分钟请求一次新的交通信息来更新交通信息。关闭动态交通信息后使用交通信息的相关信息的功能将无法正常使用,包括路况刷新、避免拥堵重算等。
When dynamic traffic information related functions are needed, this interface needs to be called to open the traffic information function. It is enabled by default,
After opening, new traffic information will be requested every 1 minute to update traffic information. After closing dynamic traffic information, functions related to traffic information will not be able to work properly, including traffic refresh and congestion avoidance recalculation.
enable - 交通状态是否更新public boolean isTrafficInfoUpdateEnabled()
默认是开启的,打开此功能后将有整体路况概览与前方路况播报功能,打开此功能后TBT会基本1分钟请求,
一次前方路况(此时间间隔不是固定的)。关闭交通台后将没有路况播报功能。
It is enabled by default. After opening this function, there will be an overall traffic overview and front traffic broadcast function. After opening this function, TBT will basically request every 1 minute,
once for front traffic conditions (this time interval is not fixed). After closing the traffic station, there will be no traffic broadcast function.
public void setTrafficInfoUpdateEnabled(boolean enable)
AMapNavi.setTrafficInfoUpdateEnabled(boolean)AMapNavi.setTrafficInfoUpdateEnabled(boolean)
默认是开启的,打开此功能后将有整体路况概览与前方路况播报功能,打开此功能后TBT会基本1分钟请求
一次前方路况(此时间间隔不是固定的)。关闭交通台后将没有路况播报功能。
It is enabled by default. After opening this function, there will be an overall traffic overview and front traffic broadcast function. After opening this function, TBT will basically request every 1 minute
once for front traffic conditions (this time interval is not fixed). After closing the traffic station, there will be no traffic broadcast function.
enable - 是否打开移动交通台功能public void setMonitorCameraEnabled(boolean monitorCameraEnabled)
monitorCameraEnabled - true,显示;false,不显示public boolean isScreenAlwaysBright()
public void setScreenAlwaysBright(boolean isAlwaysBright)
isAlwaysBright - true-常亮 false-不常亮public static void updatePrivacyShow(Context context,
boolean isContains,
boolean isShow)
context - isContains: - 隐私权政策是否包含高德开平隐私权政策 true是包含isShow: - 隐私权政策是否弹窗展示告知用户 true是展示public static void updatePrivacyAgree(Context context,
boolean isAgree)
context - isAgree:隐私权政策是否取得用户同意 - true是用户同意public void setOpenNextRoadInfo(boolean open)
AmapNaviParams.setSecondActionVisible(boolean);AmapNaviParams.setSecondActionVisible(boolean);AMapNaviViewOptions.setSecondActionVisible(boolean)AMapNaviViewOptions.setSecondActionVisible(boolean)
注意:该接口仅驾车模式有效
Note: This interface is only valid for driving mode
open - true-开启 false-关闭public boolean isFilterShowCrossMessage()
public void SetFilterShowCrossMessageStatus(boolean isFilterMsg)