FUIBarcodeScanViewControllerDelegate
public protocol FUIBarcodeScanViewControllerDelegate : AnyObject
The delegate protocol for the FUIBarcodeScanViewController
.
-
Called after a scanning process. The
scanResult
can benil
if there was a decoding failure in theAVFoundation
framework.Declaration
Swift
func barcodeScanViewController(_ barcodeScanViewController: FUIBarcodeScanViewController, didReceiveScanResult scanResult: FUIBarcodeScanResult?)
Parameters
barcodeScanViewController
The
FUIBarcodeScanViewController
that host the FUIBarcodeScanner.scanResult
the ScanResult instance or
nil
if decoding failed. -
Called after a scanning process when the
confirmationView
property of theFUIBarcodeScanViewController
is notnil
.The
scanResult
can benil
if there was a decoding failure in theAVFoundation
framework.Declaration
Swift
func barcodeScanViewController(_ barcodeScanViewController: FUIBarcodeScanViewController, didReceiveScanResult scanResult: FUIBarcodeScanResult?, confirmationView: UIView) -> Bool
Parameters
barcodeScanViewController
The
FUIBarcodeScanViewController
that hosts theFUIBarcodeScanner
.scanResult
the
ScanResult
instance ornil
if decoding failed.confirmationView
The developer-provided confirmation view.