-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cancel throws exception #1
Comments
At least you should make a difference between a canceled scan and a scan with a failure. Currently, both are throwing an exception, and both have the same message "canceled". |
That's because of the oversimplified Flutter plugin interface.
You're right. |
At least with Pigeon you can implement some return Types like: |
Thanks for your suggestion, Ralph, I appreciate it. |
When the user cancels a scan, an exception is thrown. I'm unsure if this is good behavior because canceling is an allowed operation and should not throw an exception.
see https://github.com/roman-yerin/native_qr/blob/trunk/android/src/main/kotlin/team/ion/native_qr/NativeQrPlugin.kt#L40
The text was updated successfully, but these errors were encountered: