public class Zebra2DSoftDecoder_MTK_6765_qcom extends BarcodeDecoder
BarcodeDecoder.IBarcodeImageCallback
DECODE_CANCEL, DECODE_ENGINE_ERROR, DECODE_FAILURE, DECODE_SUCCESS, DECODE_TIMEOUT
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭二维扫描设备
Switch off 2D barcode scannning device |
static Zebra2DSoftDecoder_MTK_6765_qcom |
getInstance() |
int |
getNumParameter(int paramNum)
获取扫描头参数
Acquire scanning module parameter |
java.lang.String |
getStrParameter(int paramNum)
获取扫描头参数
acquire scanning module parameter |
java.lang.String |
getStrProperty(int propNum) |
boolean |
isOpen()
扫描头是否已经打开
|
boolean |
open(Context context)
打开二维扫描设备
Switch on 2D scanning device |
void |
setDecodeCallback(BarcodeDecoder.DecodeCallback scanCallbackListener)
设置回调对象接收条码数据,主线程回调
Setup call-back target to acquire barcode data. |
boolean |
setParameter(int paramNum,
int paramVal)
设置扫描头参数(Setup scanning module parameter)
|
boolean |
setParameter(int paramNum,
java.lang.String paramVal)
设置扫描头参数
|
void |
setTimeOut(int timeOut)
设置超时时间
setup time-out duration |
boolean |
startHandsFree()
设置连续扫描
Setup continuous scanning function |
boolean |
startScan()
触发二维条码扫描
Trigger 2D barcode scanning function |
boolean |
stopHandsFree()
停止连续扫描
Stop continuous scanning |
void |
stopScan()
终止扫描
Scanning terminated |
getDecoderSVersionInfo, getLastDecImage
public static Zebra2DSoftDecoder_MTK_6765_qcom getInstance()
public boolean open(Context context)
BarcodeDecoder
open
在类中 BarcodeDecoder
public void close()
BarcodeDecoder
close
在类中 BarcodeDecoder
public boolean startScan()
BarcodeDecoder
startScan
在类中 BarcodeDecoder
public void stopScan()
BarcodeDecoder
stopScan
在类中 BarcodeDecoder
public void setDecodeCallback(BarcodeDecoder.DecodeCallback scanCallbackListener)
BarcodeDecoder
setDecodeCallback
在类中 BarcodeDecoder
public boolean setParameter(int paramNum, int paramVal)
BarcodeDecoder
setParameter
在类中 BarcodeDecoder
public boolean setParameter(int paramNum, java.lang.String paramVal)
paramNum
- paramNumparamVal
- paramValpublic int getNumParameter(int paramNum)
paramNum
- paramNumpublic java.lang.String getStrParameter(int paramNum)
paramNum
- paramNumpublic java.lang.String getStrProperty(int propNum)
public boolean startHandsFree()
public boolean stopHandsFree()
public void setTimeOut(int timeOut)
BarcodeDecoder
setTimeOut
在类中 BarcodeDecoder
timeOut
- 超时时间,单位:秒(timeOut,Unit: second)public boolean isOpen()
BarcodeDecoder
isOpen
在类中 BarcodeDecoder