Skip to content

Commit 944b564

Browse files
committed
use type info
1 parent 5efd2ba commit 944b564

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Example/BarcodeScannerExample/BarcodeScannerExample/ViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ class ViewController: UIViewController {
4040

4141
extension ViewController: BarcodeScannerCodeDelegate {
4242

43-
func barcodeScanner(controller: BarcodeScannerController, didCapturedCode code: String) {
43+
func barcodeScanner(controller: BarcodeScannerController, didCapturedCode code: String, type: String) {
4444
print(code)
45+
print(type)
4546

4647
let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(6 * Double(NSEC_PER_SEC)))
4748
dispatch_after(delayTime, dispatch_get_main_queue()) {

0 commit comments

Comments
 (0)