com.rscja.deviceapi.interfaces

## Interface IBarcode2D

- All Known Implementing Classes:
    Barcode2D

      public interface IBarcode2D

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `close()` 关闭二维扫描设备 Switch off 2D barcode scanning device.
    `boolean` | `isPowerOn()`
    `boolean` | `open()` 打开二维扫描设备 Switch on 1D scanning device.
    `boolean` | `open(Context context)` 打开二维扫描设备 Switch on 1D scanning device.
    `java.lang.String` | `scan()` 触发一次条码扫描 Enable barcode scanning for 1 time.
    `byte[]` | `scanBarcode()` 触发一次条码扫描 Enable barcode scanning for 1 time.
    `void` | `setTimeOut(int time)` 设置超时时间 set time out.
    `boolean` | `stopScan()` 终止扫描 Scanning terminated

- - ### Method Detail

    - #### open

          boolean open()

      打开二维扫描设备
      Switch on 1D scanning device.
      Returns:
        true:成功,false:失败
        true:success,false:failuer

    - #### open

          boolean open(Context context)

      打开二维扫描设备
      Switch on 1D scanning device.
      Returns:
        true:成功,false:失败
        true:success,false:failuer

    - #### scan

          java.lang.String scan()

      触发一次条码扫描
      Enable barcode scanning for 1 time.
      Returns:
        扫描得到的条码信息
        scanning barcode infor that acquired.

    - #### scanBarcode

          byte[] scanBarcode()

      触发一次条码扫描
      Enable barcode scanning for 1 time.
      Returns:
        扫描得到的条码信息
        scanning barcode infor that acquired.

    - #### stopScan

          boolean stopScan()

      终止扫描
      Scanning terminated
      Returns:
        true:成功，false:失败
        true:success, false:failuer

    - #### close

          boolean close()

      关闭二维扫描设备
      Switch off 2D barcode scanning device.
      Returns:
        true:成功，false:失败
        true:success, false:failuer

    - #### setTimeOut

          void setTimeOut(int time)

      设置超时时间
      set time out.
      Parameters:
        `time(500-10000` - ms) 超时时间
        TimeOut

    - #### isPowerOn

          boolean isPowerOn()