ProductResolver
The product resolver parses Barcodes e.g. GTINs and provides all meta data about the scanned product like age restrictions, sale stop and embedded units. You can also observe errors like network errors or product not found errors.
You can create a new instance by using the Builder.
Here is a basic example how to show just the ProductConfirmationDialog:
Builder(context) .setCodes(ScannedCode.parse(SnabbleUI.project, code)) .create() .resolve()
You can find an advanced sample in the SelfScanningView.lookupAndShowProduct(...)
Types
The age not reached listener.
The already scanned listener.
Listener for dismissing the product confirmation dialog. We use this internal to continue the camera preview.
The network error listener.
Not for sale listener.
The product found listener.
The product not found listener.
Sale stop listener.
The shelf code scanned listener.
Listener for showing the product confirmation dialog. We use this internal to stop the camera preview.