onSuccess
Called when a barcode is successfully scanned.
Parameters
scanResult
The result of the scanning operation containing the decoded barcode data and format.
Called when a barcode is successfully scanned.
The result of the scanning operation containing the decoded barcode data and format.