type property
Returns format type of the barcode value.
For example, TYPE_TEXT, TYPE_PRODUCT, TYPE_URL, etc.
If the value structure cannot be parsed, TYPE_TEXT will be returned. If the recognized structure type is not defined in your current version of SDK, TYPE_UNKNOWN will be returned.
Note that the built-in parsers only recognize a few popular value structures. For your specific use case, you might want to directly consume rawValue and implement your own parsing logic.
Implementation
final BarcodeType type;