INNER CODE UNIT · Swift
userDidScanWith
AmolGangadhare/flutter_barcode_scanner · ios/Classes/SwiftFlutterBarcodeScannerPlugin.swift:136
public func userDidScanWith(barcode: String){
pendingResult(barcode)
}
/// Show common alert dialog
func showAlertDialog(title:String,message:String){
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
let alertAction = UIAlertAction(title: "Ok", style: .default, handler: nil)
alertController.addAction(alertAction)
SwiftFlutterBarcodeScannerPlugin.viewController.present(alertController, animated: true, completion: nil)
}
}
protocol ScanBarcodeDelegate {
func userDidScanWith(barcode: String)
}
class BarcodeScannerViewController: UIViewController {