addScanResultCallback

add a barcode result callback

Parameters

callback

the callback to handle the scanned barcode per frame