public class CoAsia2DSoftDecoder_qcom extends BarcodeDecoder
BarcodeDecoder.DecodeCallback, BarcodeDecoder.IBarcodeImageCallback
DECODE_CANCEL, DECODE_ENGINE_ERROR, DECODE_FAILURE, DECODE_SUCCESS, DECODE_TIMEOUT
限定符和类型 | 方法和说明 |
---|---|
void |
activateLicense(Context context,
java.lang.String license)
传入激活码,激活
|
void |
close()
关闭二维扫描设备
Switch off 2D barcode scannning device |
SymbologySettingItem[] |
getCodeTypeList()
获取当前设置的条码类型的开光状态
|
boolean |
open(Context context)
打开二维扫描设备
Switch on 2D scanning device |
void |
setAE(boolean isAE)
是否开启曝光模式
|
boolean |
setCodeTypeOnAndOff(java.lang.String barcodeType,
int OnOff)
开关条码
|
void |
setDecodeCallback(BarcodeDecoder.DecodeCallback scanCallbackListener)
设置回调对象接收条码数据,主线程回调
Setup call-back target to acquire barcode data. |
void |
setTimeOut(int timeOut)
设置超时时间
setup time-out duration |
void |
setTorch(boolean torch)
是否开启照明
|
boolean |
startScan()
触发二维条码扫描
Trigger 2D barcode scanning function |
void |
stopScan()
终止扫描
Scanning terminated |
getDecoderSVersionInfo, getLastDecImage, isOpen, setParameter
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 void setTimeOut(int timeOut)
BarcodeDecoder
setTimeOut
在类中 BarcodeDecoder
timeOut
- 超时时间,单位:秒(timeOut,Unit: second)public void activateLicense(Context context, java.lang.String license)
context
- contextlicense
- licensepublic boolean setCodeTypeOnAndOff(java.lang.String barcodeType, int OnOff)
barcodeType
- barcodeTypeOnOff
- 0:off 1:onpublic SymbologySettingItem[] getCodeTypeList()
public void setAE(boolean isAE)
isAE
- 是否开启曝光模式public void setTorch(boolean torch)
torch
- 是否开启照明