ScannerViewDelegate

@objc
public protocol ScannerViewDelegate : AnyObject

The delegate callback protocol used by ScannerView.

  • The delegate callback made by the scanner view upon successful detection of a code.

    Declaration

    Swift

    func scannerView(_ view: ScannerView, didScanCode code: String, type: AVMetadataObject.ObjectType)