com.amap.api.navi.view

## 类 TrafficButtonView

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

-     public class TrafficButtonView
      extends ImageView

  路况开关view类
  Traffic switch view class
  从以下版本开始:
    1.8.0

- - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `getIsTrafficOpen()` 获取当前交通开关是否打开 Get whether the current traffic switch is open
    `void` | `processNightMode(boolean isNight)` 切换昼夜模式 Switch day/night mode
    `void` | `recycleResource()` 资源回收 Resource recycling
    `void` | `setIsTrafficOpen(boolean isTrafficOpen)` 设置交通开关状态 Set traffic switch status.

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

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

- - ### 方法详细资料

    - #### getIsTrafficOpen

          public boolean getIsTrafficOpen()

      获取当前交通开关是否打开
      Get whether the current traffic switch is open
      返回:

    - #### setIsTrafficOpen

          public void setIsTrafficOpen(boolean isTrafficOpen)

      设置交通开关状态
      Set traffic switch status.
      参数:
        `isTrafficOpen` - true代表打开，false代表关闭
        true means open, false means closed

    - #### recycleResource

          public void recycleResource()

      资源回收
      Resource recycling

    - #### processNightMode

          public void processNightMode(boolean isNight)

      切换昼夜模式
      Switch day/night mode
      参数:
        `isNight` -