Skip to content

Commit

Permalink
Update MobileScannerPlugin.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
EArminjon authored Nov 22, 2023
1 parent 9835ade commit bbac638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/MobileScannerPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin {
let returnImage: Bool = (call.arguments as! Dictionary<String, Any?>)["returnImage"] as? Bool ?? false
let speed: Int = (call.arguments as! Dictionary<String, Any?>)["speed"] as? Int ?? 0
let timeoutMs: Int = (call.arguments as! Dictionary<String, Any?>)["timeout"] as? Int ?? 0
self.mobileScanner.timeoutSeconds = timeoutMs / Double(1000)
self.mobileScanner.timeoutSeconds = Double(timeoutMs) / Double(1000)

let formatList = formats.map { format in return BarcodeFormat(rawValue: format)}
var barcodeOptions: BarcodeScannerOptions? = nil
Expand Down

0 comments on commit bbac638

Please sign in to comment.