You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wan't to achieve a continuous scan that stands still for 2 seconds if barcode was found. Therefore I use the BarcodeCallback and call compoundBarcodeView.pause() then wait 2 seconds and call compoundBarcodeView.resume() because I don't know any other option.
What happens is the following
continous scan
sill image full screen (with no semi transparent frame)
still image with frame
continous scan
I'd like to have it like this
continuous scan
still image with frame
continuous scan
This is the code I use in the callback
private BarcodeCallback callback = new BarcodeCallback() {
private long lastTimestamp = 0;
@Override
public void barcodeResult(BarcodeResult result) {
String scannedCode = null;
if (result != null) {
scannedCode = result.getText();
if (scannedCode != null) {
mBarcodeScannerView.pause();
if(System.currentTimeMillis() - lastTimestamp < DELAY) {
// Too soon after the last barcode - ignore.
return;
}
lastTimestamp = System.currentTimeMillis();
mBarcodeScannerView.resume();
}
}
handleScan(scannedCode);
}
@Override
public void possibleResultPoints(List<ResultPoint> resultPoints) { /* do nothing */ }
};
The text was updated successfully, but these errors were encountered:
As a workaround I took the ViewfinderView and made it invisible (gone). With this way I also got rid of the laser which i wanted anyway. Then I created a View by myself. This view never gets distracted.
Hi,
I wan't to achieve a continuous scan that stands still for 2 seconds if barcode was found. Therefore I use the BarcodeCallback and call compoundBarcodeView.pause() then wait 2 seconds and call compoundBarcodeView.resume() because I don't know any other option.
What happens is the following
I'd like to have it like this
This is the code I use in the callback
private BarcodeCallback callback = new BarcodeCallback() {
private long lastTimestamp = 0;
The text was updated successfully, but these errors were encountered: