Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan callback too frequently #164

Open
apple2360541 opened this issue Aug 6, 2018 · 3 comments
Open

Scan callback too frequently #164

apple2360541 opened this issue Aug 6, 2018 · 3 comments

Comments

@apple2360541
Copy link

I cannot set the callback time ;when scan success,I send my request to server;but the scan call back so frequently that it send so many requests to my server

@f839903061
Copy link

@apple2360541 请问这个问题你解决了吗,我也要遇到了这个问题,扫码频率太快了,而且多

@alisubhani313
Copy link

i am also facing same issue. How to resolve this.

@yunusemredilber
Copy link

yunusemredilber commented Apr 21, 2020

Well, you can stop QR decoding at the first callback. And when your operation is done, you can restart it (or not). Here is a simple example that I'm using:

@Override
 public void onQRCodeRead(String text, PointF[] points) {
     qrCodeReaderView.setQRDecodingEnabled(false);
     Helper.showStandardDialog(this, text, () -> {
         // This code executed when the user touches the "ok" button.
         qrCodeReaderView.setQRDecodingEnabled(true);
     });
}

You get the point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants