com.amap.api.navi.view

## 类 NextTurnTipView

- java.lang.Object
- - ImageView
  - - com.amap.api.navi.view.NextTurnTipView

-     public class NextTurnTipView
      extends ImageView

  自定义转向图标类
  Custom turn icon class

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int[]` | `defaultIconTypes` 数组必须按照IconType.java数据进行配置，如果有空，使用R.drawable.amap_navi_lbs_sou9站位 The array must be configured according to IconType.java data.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int[]` | `getCustomIconTypeDrawables()` 获取`NextTurnTipView.setCustomIconTypes(Resources, int[])`函数设置的int图片数组 Get the int image array set by the `NextTurnTipView.setCustomIconTypes(Resources, int[])` function
    `Resources` | `getCustomResources()` 获取`NextTurnTipView.setCustomIconTypes(Resources, int[])`函数设置的Resources对象 Get the Resources object set by the `NextTurnTipView.setCustomIconTypes(Resources, int[])` function.
    `void` | `recycleResource()` 释放图片资源 Release image resources
    `void` | `setCustomIconTypes(Resources res, int[] customIconTypes)` 用于设置自定义的icon图片数组 Used to set a custom icon image array.
    `void` | `setIconBitmap(Bitmap bitmap)` 设置转向图标bitmap Set turn icon bitmap
    `void` | `setIconType(int iconType)` 设置自定义的转向图标，请参考`IconType` Set custom turn icon, please refer to `IconType`

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

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

- - ### 字段详细资料

    - #### defaultIconTypes

          public static int[] defaultIconTypes

      数组必须按照IconType.java数据进行配置，如果有空，使用R.drawable.amap_navi_lbs_sou9站位
      The array must be configured according to IconType.java data. If there is empty, use R.drawable.amap_navi_lbs_sou9 as placeholder.

  - ### 方法详细资料

    - #### getCustomResources

          public Resources getCustomResources()

      获取`NextTurnTipView.setCustomIconTypes(Resources, int[])`函数设置的Resources对象
      Get the Resources object set by the `NextTurnTipView.setCustomIconTypes(Resources, int[])` function.
      返回:

    - #### getCustomIconTypeDrawables

          public int[] getCustomIconTypeDrawables()

      获取`NextTurnTipView.setCustomIconTypes(Resources, int[])`函数设置的int图片数组
      Get the int image array set by the `NextTurnTipView.setCustomIconTypes(Resources, int[])` function
      返回:
        int图片数组
        int image array

    - #### setCustomIconTypes

          public void setCustomIconTypes(Resources res,
                                         int[] customIconTypes)

      用于设置自定义的icon图片数组
      Used to set a custom icon image array.

      此方法与NextTurnTipView.setIconType(int)相互配合。
      This method works in conjunction with NextTurnTipView.setIconType(int).
      导航过程中，SDK会调用NextTurnTipView.setIconType(int)设置转向图片，其中图片就是通过customIconTypes[]数组对应index下标获取的。
      During navigation, the SDK will call NextTurnTipView.setIconType(int) to set the turn image, where the image is obtained through the corresponding index subscript of the customIconTypes[] array.

      参数:
        `res` - Resource资源
        Resource resource
        `customIconTypes` - icon数组，数组中存放图片的顺序需要与IconType依次对应(排除0和1两个元素,图片数组的第一个元素应为2左转图标)。
        icon array, the order of images stored in the array needs to correspond to IconType in turn (excluding elements 0 and 1, the first element of the image array should be the 2 left turn icon).

    - #### recycleResource

          public void recycleResource()

      释放图片资源
      Release image resources

    - #### setIconType

          public void setIconType(int iconType)

      设置自定义的转向图标，请参考`IconType`
      Set custom turn icon, please refer to `IconType`
      参数:
        `iconType` - 图片的id
        Image id

    - #### setIconBitmap

          public void setIconBitmap(Bitmap bitmap)

      设置转向图标bitmap
      Set turn icon bitmap
      参数:
        `bitmap` -