com.amap.api.navi

## 类 AmapNaviPage

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

-     public class AmapNaviPage
      extends java.lang.Object

  导航组件类
  Navigation component class

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static java.lang.String` | `TAG`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addMarker(AMapNaviMarkerOptions markerOptions)` 在驾车导航界面添加自定义标注 Add custom markers in driving navigation interface.
    `static void` | `destroy()` 已过时。
    `void` | `exitRouteActivity()` 退出导航组件 Exit navigation component
    `boolean` | `isDrawBackUpOverlay()` 是否绘制多备选路线 默认true Whether to draw multiple alternative routes, default true
    `boolean` | `isDrawRestrictArea()` 是否绘制限行图层 默认false Whether to draw restriction layer, default false
    `boolean` | `isShowRouteStrategyPreferenceView()` 获取是否自定义了算路策略 Get whether route strategy is customized
    `boolean` | `isTrafficEnable()` 获取路况开关是否打开 Get whether traffic condition switch is turned on
    `void` | `removeMarker(AMapNaviMarkerOptions markerOptions)` 在驾车导航界面移除自定义标注 Remove custom markers in driving navigation interface.
    `void` | `showRouteActivity(Context context, AmapNaviParams params, INaviInfoCallback callback)` 调起导航组件功能 使用此功能后不能再使用AmapNavi对象的任何方法 Invoke navigation component function After using this function, you can no longer use any methods of the AmapNavi object.
    `void` | `showRouteActivity(Context context, AmapNaviParams params, INaviInfoCallback callback, java.lang.Class<? extends AmapRouteActivity> targetClass)` 调起导航组件功能 使用此功能后不能再使用AmapNavi对象的任何方法 Invoke navigation component function After using this function, you can no longer use any methods of the AmapNavi object.
    `boolean` | `showVoiceAssistEnable()` 设置中是否展示音频控制项 Whether to show audio control items in settings
    `void` | `updateMarker(AMapNaviMarkerOptions markerOptions)` 在驾车导航界面更新自定义标注 Update custom markers in driving navigation interface.

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

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

- - ### 字段详细资料

    - #### TAG

          public static final java.lang.String TAG

      另请参阅:
        常量字段值

  - ### 方法详细资料

    - #### destroy

          public static void destroy()

      已过时。
      销毁，释放资源
      Destroy, release resources
      从以下版本开始:
        6.2.0

    - #### showRouteActivity

          public void showRouteActivity(Context context,
                                        AmapNaviParams params,
                                        INaviInfoCallback callback)

      调起导航组件功能
      使用此功能后不能再使用AmapNavi对象的任何方法
      Invoke navigation component function
      After using this function, you can no longer use any methods of the AmapNavi object.
      参数:
        `context` - 上下文
        Context
        `params` - 导航参数，不可为空
        Navigation parameters, cannot be null
        `callback` - 回调方法，具体参见`INaviInfoCallback`
        Callback method, see details in `INaviInfoCallback`

    - #### showRouteActivity

          public void showRouteActivity(Context context,
                                        AmapNaviParams params,
                                        INaviInfoCallback callback,
                                        java.lang.Class<? extends AmapRouteActivity> targetClass)

      调起导航组件功能
      使用此功能后不能再使用AmapNavi对象的任何方法
      Invoke navigation component function
      After using this function, you can no longer use any methods of the AmapNavi object.

      在特定activity中启动导航组件，需要保证自定义的activity继承我们的AmapRouteActivity，要在对应生命周期中调用super的方法
      Start the navigation component in a specific activity. Need to ensure that the custom activity extends our AmapRouteActivity, and call super's method in the corresponding lifecycle

      参数:
        `context` - 上下文
        Context
        `params` - 导航参数，不可为空
        Navigation parameters, cannot be null
        `callback` - 回调方法，具体参见`INaviInfoCallback`
        Callback method, see details in `INaviInfoCallback`
        `targetClass` - 目标Activity，需要继承自AmapRouteActivity
        Target Activity, needs to extend AmapRouteActivity
      从以下版本开始:
        6.3.0

    - #### exitRouteActivity

          public void exitRouteActivity()

      退出导航组件
      Exit navigation component

    - #### addMarker

          public void addMarker(AMapNaviMarkerOptions markerOptions)

      在驾车导航界面添加自定义标注
      Add custom markers in driving navigation interface.

      注意：必须在组件Activity执行完onCreate之后调用才能生效。
      Note: Must be called after the component Activity has finished executing onCreate to take effect.

      参数:
        `markerOptions` -
      从以下版本开始:
        6.1.0

    - #### updateMarker

          public void updateMarker(AMapNaviMarkerOptions markerOptions)

      在驾车导航界面更新自定义标注
      Update custom markers in driving navigation interface.

      注意：必须在组件Activity执行完onCreate之后调用才能生效。
      Note: Must be called after the component Activity has finished executing onCreate to take effect.

      参数:
        `markerOptions` -
      从以下版本开始:
        6.1.0

    - #### removeMarker

          public void removeMarker(AMapNaviMarkerOptions markerOptions)

      在驾车导航界面移除自定义标注
      Remove custom markers in driving navigation interface.

      注意：必须在组件Activity执行完onCreate之后调用才能生效。
      Note: Must be called after the component Activity has finished executing onCreate to take effect.

      从以下版本开始:
        6.1.0

    - #### isShowRouteStrategyPreferenceView

          public boolean isShowRouteStrategyPreferenceView()

      获取是否自定义了算路策略
      Get whether route strategy is customized
      返回:
      从以下版本开始:
        6.1.0

    - #### isTrafficEnable

          public boolean isTrafficEnable()

      获取路况开关是否打开
      Get whether traffic condition switch is turned on
      返回:
      从以下版本开始:
        6.2.0

    - #### isDrawBackUpOverlay

          public boolean isDrawBackUpOverlay()

      是否绘制多备选路线 默认true
      Whether to draw multiple alternative routes, default true
      返回:
      从以下版本开始:
        6.7.0

    - #### isDrawRestrictArea

          public boolean isDrawRestrictArea()

      是否绘制限行图层 默认false
      Whether to draw restriction layer, default false
      返回:
      从以下版本开始:
        9.0.1

    - #### showVoiceAssistEnable

          public boolean showVoiceAssistEnable()

      设置中是否展示音频控制项
      Whether to show audio control items in settings
      返回: