Callback function for requests expecting a BarcodeFrame object.
function(<BarcodeFrame> barcodeFrame)