onSuccess

abstract fun onSuccess(scanResult: ScanResult)

Called when a barcode is successfully scanned.

Parameters

scanResult

The result of the scanning operation containing the decoded barcode data and format.