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

Add a state listener for scanning phases #54

Open
Udanita opened this issue Jul 2, 2019 · 1 comment
Open

Add a state listener for scanning phases #54

Udanita opened this issue Jul 2, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@Udanita
Copy link

Udanita commented Jul 2, 2019

This is not an issue but a question and really congrats for such an amazing plugin. Do you think is possible to modify the Scan.h file to get a callback if the scanner is finding something (when the red start to appear), if the scanner lost the focus (the red disappear), if the scanner is launching the count down (2...1...)? With something like a state listener we can use the plugin even for guide blind people to make a scan. It will be definitely perfect. Any ideas? Thanks.

@ChrisTomAlx ChrisTomAlx self-assigned this Jul 2, 2019
@ChrisTomAlx ChrisTomAlx added enhancement New feature or request question Further information is requested labels Jul 2, 2019
@ChrisTomAlx
Copy link
Collaborator

This is actually a brilliant idea. Although, to implement it, we will have to change the library we use and not just the scan.h file. Since the scan.m file actually calls the scanner library, there will need to be event emitters in the library, which the scan.m file will listen for and then the cordova interface can emit events when state changes occur. Also there is the issue of Android having a slightly different interface where the edge detection occurs after the image was clicked and not during and so there are no intermediate states as such.

Thanks for raising this issue, honestly it is something I would probably never have thought of on my own. I will add this to our enhancements backlog, but can't really give a fixed date on when we might see this feature implemented.

Cheers and have a nice day!
Chris
Neutrinos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants