com.amap.api.navi

## 类 NaviSetting

- java.lang.Object
- - com.amap.api.navi.NaviSetting

-     public class NaviSetting
      extends java.lang.Object

  导航参数控制类，可通过`AMapNavi.getNaviSetting()`获取实例
  Navigation parameter control class, can be obtained through `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)` 已过时。 请使用 `AMapNavi.setTrafficInfoUpdateEnabled(boolean)` Please use `AMapNavi.setTrafficInfoUpdateEnabled(boolean)`
    `void` | `setTrafficStatusUpdateEnabled(boolean enable)` 已过时。 请使用 `AMapNavi.setTrafficStatusUpdateEnabled(boolean)` Please use `AMapNavi.setTrafficStatusUpdateEnabled(boolean)`
    `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

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### getEtaShowMode

          public int getEtaShowMode()

      获取ETA信息显示模式
      Get ETA information display mode
      返回:

    - #### setEtaShowMode

          public void setEtaShowMode(int etaShowMode)

      设置ETA信息显示模式
      Set ETA information display mode
      参数:
        `etaShowMode` -

    - #### isTrafficStatusUpdateEnabled

          public boolean isTrafficStatusUpdateEnabled()

      已过时。
      获取交通状态是否更新
      Get whether traffic status is updated.

      需要动态交通信息相关功能时需要调用此接口打开交通信息功能，默认动态交通功能是开启的， 打开后会每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.

      返回:
        交通状态是否更新
        Whether traffic status is updated

    - #### setTrafficStatusUpdateEnabled

          public void setTrafficStatusUpdateEnabled(boolean enable)

      已过时。 请使用 `AMapNavi.setTrafficStatusUpdateEnabled(boolean)`
      Please use `AMapNavi.setTrafficStatusUpdateEnabled(boolean)`
      设置交通状态是否更新
      Set whether traffic status is updated.

      需要动态交通信息相关功能时需要调用此接口打开交通信息功能，默认是开启的， 打开后会每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` - 交通状态是否更新
        Whether traffic status is updated

    - #### isTrafficInfoUpdateEnabled

          public boolean isTrafficInfoUpdateEnabled()

      已过时。
      是否打开移动交通台功能
      Whether to open mobile traffic station function.

      默认是开启的，打开此功能后将有整体路况概览与前方路况播报功能，打开此功能后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.

      返回:
        是否打开移动交通台功能
        Whether to open mobile traffic station function

    - #### setTrafficInfoUpdateEnabled

          public void setTrafficInfoUpdateEnabled(boolean enable)

      已过时。 请使用 `AMapNavi.setTrafficInfoUpdateEnabled(boolean)`
      Please use `AMapNavi.setTrafficInfoUpdateEnabled(boolean)`
      设置是否打开移动交通台功能
      Set whether to open mobile traffic station function.

      默认是开启的，打开此功能后将有整体路况概览与前方路况播报功能，打开此功能后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` - 是否打开移动交通台功能
        Whether to open mobile traffic station function

    - #### setMonitorCameraEnabled

          public void setMonitorCameraEnabled(boolean monitorCameraEnabled)

      HUD模式下，设置限速信息是否显示
      Set whether speed limit information is displayed in HUD mode
      参数:
        `monitorCameraEnabled` - true，显示；false，不显示
        true, display; false, do not display

    - #### isScreenAlwaysBright

          public boolean isScreenAlwaysBright()

      屏幕是否常亮，默认开启
      Whether the screen is always bright, enabled by default
      返回:
        true-常亮 false-不常亮
        true-always bright false-not always bright

    - #### setScreenAlwaysBright

          public void setScreenAlwaysBright(boolean isAlwaysBright)

      设置屏幕是否常亮，默认开启
      Set whether the screen is always bright, enabled by default
      参数:
        `isAlwaysBright` - true-常亮 false-不常亮
        true-always bright false-not always bright

    - #### updatePrivacyShow

          public 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
      参数:
        `context` -
        `isContains:` - 隐私权政策是否包含高德开平隐私权政策 true是包含
        Whether the privacy policy includes AutoNavi's privacy policy. true means included
        `isShow:` - 隐私权政策是否弹窗展示告知用户 true是展示
        Whether the privacy policy is displayed in a popup to inform users. true means displayed
      从以下版本开始:
        8.1.0

    - #### updatePrivacyAgree

          public static void updatePrivacyAgree(Context context,
                                                boolean isAgree)

      设置是否同意用户授权政策 必须在AmapLocationClient实例化之前调用
      Set whether to agree to the user authorization policy Must be called before AmapLocationClient instantiation
      参数:
        `context` -
        `isAgree:隐私权政策是否取得用户同意` - true是用户同意
        Whether the privacy policy has obtained user consent. true means user agrees
      从以下版本开始:
        8.1.0

    - #### setOpenNextRoadInfo

          public 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)`
      设置是否启用第二个路口转向提示
      Set whether to enable the second intersection turn prompt.

      注意：该接口仅驾车模式有效
      Note: This interface is only valid for driving mode

      参数:
        `open` - true-开启 false-关闭
        true-enable false-disable

    - #### isFilterShowCrossMessage

          public boolean isFilterShowCrossMessage()

      是否过滤路口大图回调消息
      Whether to filter intersection large image callback messages

    - #### SetFilterShowCrossMessageStatus

          public 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