-
Notifications
You must be signed in to change notification settings - Fork 53
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
[Question] Customization of the scanner behavior #10
Comments
Hi @dmalukov You basically like to have an option to validate the content of a result right inside the scanner activity, right? I know that it's not ideal to check the result after the scanner activity finished. I am not really sure what the best option would be, since we can't reference or pass in logic when launching an activity. I thought about offering a regex validator. Do you think this would be sufficient? |
@G00fY2 |
@dmalukov My goal is to someday create a fragment based implementation. So you could include the scanner inside your own activity. |
A fragment might solve our problem indeed. |
I will close this issue and create a separate feature-request ticket for a fragment based implementation. If you heavily rely on the QR scanning feature it's maybe worth to build the CameraX and ML Kit integration by yourself. This library should be an easy starting point. Anyway thanks for your input! |
Hello there!
The lib works like a charm, the only difficulty we faced is that it's impossible to customize behavior of the scanner.
For instance, we'd like to implement additional check of QR code right in the QRScannerActivity
to avoid finishing the activity while the scanning result does not meet certain criteria.
Obviously, forking the project is an option, but maybe you can recommend something else?
The text was updated successfully, but these errors were encountered: