rebuy-de / rb-forms-barcode

Rb.Forms.Barcode is a Xamarin.Forms view for scanning barcodes.
https://github.com/rebuy-de/rb-forms-barcode
MIT License
43 stars 21 forks source link

How to prevent multiple barcode decoding results? #62

Closed milanmilic closed 7 years ago

milanmilic commented 7 years ago

I have a problem with prevention taking more than one scan results. How to take only the first scanned result, and to ignore the rest. The problem occurs when on the screen displays several bar codes at the same time.

rdoubleui commented 7 years ago

Hi @milanmilic,

Not sure if I understand you right, the lib will raise an event any time there's a new bar code detected. So I'd think it's up to your logic to act upon an additional event notification. If I got you wrong, please elaborate and I'm pretty sure we can assist.

rdoubleui commented 7 years ago

In addition you can distinguish barcodes by barcode type, that could help to narrow down the amount being scanned, if you're are having different types and don't aim to scan all those types.