com.amap.api.navi.view

## 类 AmapCameraOverlay

- java.lang.Object
- - com.amap.api.navi.view.AmapCameraOverlay

-     public class AmapCameraOverlay
      extends java.lang.Object

  路线上的电子眼气泡覆盖物
  Electronic eye bubble overlay on the route
  从以下版本开始:
    5.0.0

- - ### 构造器概要

    构造器
    构造器和说明
    `AmapCameraOverlay(Context context)`

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `destroy()` 销毁电子眼，释放图片资源 Destroy electronic eyes, release image resources
    `void` | `draw(com.amap.api.maps.AMap aMap, AMapNaviCameraInfo[] cameras)` 绘制路线上的监控小气泡，需要传入地图对象 Draw small monitoring bubbles on the route, requires passing in a map object.
    `void` | `removeAllCamera()` 删除所有的摄像头气泡 Delete all camera bubbles
    `void` | `setAllCameraVisible(boolean visible)` 设置路线上的气泡是否显示 Set whether the bubbles on the route are displayed.
    `void` | `setBusBitmap(Bitmap leftBitmap, Bitmap rightBitmap)` 设置公交专用道摄像头的图片 Set the bus-only lane camera images.
    `void` | `setCameraBitmap(Bitmap monitorBitmap)` 设置路线上的摄像头图片 Set the camera images on the route
    `void` | `setCameraMoniterBitmap(Bitmap leftBitmap, Bitmap rightBitmap)` 设置监控摄像头的图片 Set the monitoring camera images.
    `void` | `setEmergencyBitmap(Bitmap leftBitmap, Bitmap rightBitmap)` 设置应急监控的图片 Set the emergency monitoring images.
    `void` | `setRedLightBitmap(Bitmap leftBitmap, Bitmap rightBitmap)` 设置闯红灯监控的图片 Set the red-light running monitoring images.
    `void` | `setRouteOverlayVisible(boolean isVisible)` 已过时。 请使用 `AmapCameraOverlay.setAllCameraVisible(boolean)` 来设置电子眼气泡的可见性。 Please use `AmapCameraOverlay.setAllCameraVisible(boolean)` to set the visibility of the electronic eye bubbles.

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

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

- - ### 构造器详细资料

    - #### AmapCameraOverlay

          public AmapCameraOverlay(Context context)

  - ### 方法详细资料

    - #### draw

          public void draw(com.amap.api.maps.AMap aMap,
                           AMapNaviCameraInfo[] cameras)

      绘制路线上的监控小气泡，需要传入地图对象
      Draw small monitoring bubbles on the route, requires passing in a map object.
      参数:
        `cameras` - 摄像头信息数组，可通过`AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[])`回调获取
        Camera information array, can be obtained through `AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[])` callback
      从以下版本开始:
        5.0.1

    - #### removeAllCamera

          public void removeAllCamera()

      删除所有的摄像头气泡
      Delete all camera bubbles

    - #### setRouteOverlayVisible

          public void setRouteOverlayVisible(boolean isVisible)

      已过时。 请使用 `AmapCameraOverlay.setAllCameraVisible(boolean)` 来设置电子眼气泡的可见性。
      Please use `AmapCameraOverlay.setAllCameraVisible(boolean)` to set the visibility of the electronic eye bubbles.
      设置电子眼所在路线的可见性
      Set the visibility of the electronic eyes on the route
      参数:
        `isVisible` - true代表显示，false代表不显示
        true means visible, false means invisible

    - #### setAllCameraVisible

          public void setAllCameraVisible(boolean visible)

      设置路线上的气泡是否显示
      Set whether the bubbles on the route are displayed.
      参数:
        `visible` - true代表显示，false代表不显示
        true means visible, false means invisible

    - #### destroy

          public void destroy()

      销毁电子眼，释放图片资源
      Destroy electronic eyes, release image resources
      从以下版本开始:
        5.0.0

    - #### setCameraBitmap

          public void setCameraBitmap(Bitmap monitorBitmap)

      设置路线上的摄像头图片
      Set the camera images on the route
      参数:
        `monitorBitmap` - 图片
        Image
      从以下版本开始:
        5.0.0

    - #### setBusBitmap

          public void setBusBitmap(Bitmap leftBitmap,
                                   Bitmap rightBitmap)

      设置公交专用道摄像头的图片
      Set the bus-only lane camera images.
      参数:
        `leftBitmap` - 左边气泡图片
        Left bubble image
        `rightBitmap` - 右边气泡图片
        Right bubble image
      从以下版本开始:
        5.0.0

    - #### setCameraMoniterBitmap

          public void setCameraMoniterBitmap(Bitmap leftBitmap,
                                             Bitmap rightBitmap)

      设置监控摄像头的图片
      Set the monitoring camera images.
      参数:
        `leftBitmap` - 左边气泡图片
        Left bubble image
        `rightBitmap` - 右边气泡图片
        Right bubble image
      从以下版本开始:
        5.0.0

    - #### setEmergencyBitmap

          public void setEmergencyBitmap(Bitmap leftBitmap,
                                         Bitmap rightBitmap)

      设置应急监控的图片
      Set the emergency monitoring images.
      参数:
        `leftBitmap` - 左边气泡图片
        Left bubble image
        `rightBitmap` - 右边气泡图片
        Right bubble image
      从以下版本开始:
        5.0.0

    - #### setRedLightBitmap

          public void setRedLightBitmap(Bitmap leftBitmap,
                                        Bitmap rightBitmap)

      设置闯红灯监控的图片
      Set the red-light running monitoring images.
      参数:
        `leftBitmap` - 左边气泡图片
        Left bubble image
        `rightBitmap` - 右边气泡图片
        Right bubble image
      从以下版本开始:
        5.0.0