Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ryan Duffy
2023-08-08 12:36:58 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
38bec25b0a05bc22aa9909636623b0a8fac8e3c1
38bec25b
1 parent
eeefe90f
fix issue with timeout for scans
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
macos/Classes/MobileScannerPlugin.swift
macos/Classes/MobileScannerPlugin.swift
View file @
38bec25
...
...
@@ -226,7 +226,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
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
timeoutSeconds
=
Double
(
timeoutMs
)
*
1000.0
timeoutSeconds
=
Double
(
timeoutMs
)
/
1000.0
detectionSpeed
=
DetectionSpeed
(
rawValue
:
speed
)
!
// Set the camera to use
...
...
Please
register
or
login
to post a comment