Open Udanita opened 5 years ago
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.
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.