public class Zebra2DSoftDecoder_qcom extends BarcodeDecoder implements IBarcodePhoto, IZebra2DSoftDecoder
BarcodeDecoder.DecodeCallback, BarcodeDecoder.IBarcodeImageCallback
DECODE_CANCEL, DECODE_ENGINE_ERROR, DECODE_FAILURE, DECODE_SUCCESS, DECODE_TIMEOUT
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭二维扫描设备
Switch off 2D barcode scannning device |
int |
fWUpdate(java.lang.String FilePath,
boolean forceDownload,
boolean IgnoreSignature)
Update the scanner Firmware.
|
void |
getLastDecImage(BarcodeDecoder.IBarcodeImageCallback decodeImageCallback) |
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 |
open(Context context)
打开二维扫描设备
Switch on 2D scanning device |
void |
setBackgroundThreadCallback(boolean isBackgroundThreadCallback) |
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 |
setPreviewDisplay(Surface surface) |
void |
setTimeOut(int timeOut)
设置超时时间
setup time-out duration |
boolean |
startHandsFree()
设置连续扫描
Setup continuous scanning function |
void |
startPreview() |
boolean |
startScan()
触发二维条码扫描
Trigger 2D barcode scanning function |
void |
startVideo(IBarcodeVideoCallback callback) |
boolean |
stopHandsFree()
停止连续扫描
Stop continuous scanning |
void |
stopPreview() |
void |
stopScan()
终止扫描
Scanning terminated |
void |
takePicture(IBarcodePictureCallback pictureCallback) |
getDecoderSVersionInfo, isOpen
isOpen
public boolean open(Context context)
BarcodeDecoder
open
在接口中 IZebra2DSoftDecoder
open
在类中 BarcodeDecoder
public void close()
BarcodeDecoder
close
在接口中 IZebra2DSoftDecoder
close
在类中 BarcodeDecoder
public boolean startScan()
BarcodeDecoder
startScan
在接口中 IZebra2DSoftDecoder
startScan
在类中 BarcodeDecoder
public void stopScan()
BarcodeDecoder
stopScan
在接口中 IZebra2DSoftDecoder
stopScan
在类中 BarcodeDecoder
public void setDecodeCallback(BarcodeDecoder.DecodeCallback scanCallbackListener)
BarcodeDecoder
setDecodeCallback
在接口中 IZebra2DSoftDecoder
setDecodeCallback
在类中 BarcodeDecoder
public boolean setParameter(int paramNum, int paramVal)
setParameter
在接口中 IZebra2DSoftDecoder
setParameter
在类中 BarcodeDecoder
paramNum
- paramNumparamVal
- paramValpublic boolean setParameter(int paramNum, java.lang.String paramVal)
setParameter
在接口中 IZebra2DSoftDecoder
paramNum
- paramNumparamVal
- paramValpublic int getNumParameter(int paramNum)
getNumParameter
在接口中 IZebra2DSoftDecoder
paramNum
- paramNumpublic java.lang.String getStrParameter(int paramNum)
getStrParameter
在接口中 IZebra2DSoftDecoder
paramNum
- paramNumpublic boolean startHandsFree()
startHandsFree
在接口中 IZebra2DSoftDecoder
public boolean stopHandsFree()
stopHandsFree
在接口中 IZebra2DSoftDecoder
public java.lang.String getStrProperty(int propNum)
getStrProperty
在接口中 IZebra2DSoftDecoder
public int fWUpdate(java.lang.String FilePath, boolean forceDownload, boolean IgnoreSignature)
fWUpdate
在接口中 IZebra2DSoftDecoder
FilePath
- - Full path with the filenameforceDownload
- - whether to force download or not - recommended trueIgnoreSignature
- - whether to ignore signature - recommended falsepublic void setTimeOut(int timeOut)
BarcodeDecoder
setTimeOut
在接口中 IZebra2DSoftDecoder
setTimeOut
在类中 BarcodeDecoder
timeOut
- 超时时间,单位:秒(timeOut,Unit: second)public void setPreviewDisplay(Surface surface)
setPreviewDisplay
在接口中 IBarcodePhoto
public void stopPreview()
stopPreview
在接口中 IBarcodePhoto
public void startPreview()
startPreview
在接口中 IBarcodePhoto
public void takePicture(IBarcodePictureCallback pictureCallback)
takePicture
在接口中 IBarcodePhoto
public void startVideo(IBarcodeVideoCallback callback)
startVideo
在接口中 IBarcodePhoto
public void getLastDecImage(BarcodeDecoder.IBarcodeImageCallback decodeImageCallback)
getLastDecImage
在接口中 IZebra2DSoftDecoder
getLastDecImage
在类中 BarcodeDecoder
public void setBackgroundThreadCallback(boolean isBackgroundThreadCallback)