luis901101 / honeywell_scanner

BSD 3-Clause "New" or "Revised" License
22 stars 9 forks source link

How to get scanned code type? #6

Closed abdllhyvz closed 2 years ago

abdllhyvz commented 2 years ago

Hello, your package is working fine with scans but I couldn't figure out how to get scanned barcode type. I didn't see any method doing this. Is there a way that I can get barcode's type? Thank you.

luis901101 commented 2 years ago

The scanned code type was not available until now with v4.0.0+14, note this is a breaking change version. Check the version's changelog and the readme migration instructions.

abdllhyvz commented 2 years ago

Thank you! That was a very nice update.

luis901101 commented 2 years ago

Thank you! That was a very nice update.

You’re welcome. Check the breaking changes notes in changelog, there you will find how to get codeType. Anyway when you migrate to the latest version you will find that the ScannedData object received in the onDecoded callback, has the scanned code and the code type as well as other properties…