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
Navaron Bracke
2024-09-04 12:53:17 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cc23a80e5d0bc0725fae375324370aff82562267
cc23a80e
1 parent
02e01023
set return image flag on macos
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
macos/mobile_scanner/Sources/mobile_scanner/MobileScannerPlugin.swift
macos/mobile_scanner/Sources/mobile_scanner/MobileScannerPlugin.swift
View file @
cc23a80
...
...
@@ -25,6 +25,10 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
// optional window to limit scan search
var
scanWindow
:
CGRect
?
/// Whether to return the input image with the barcode event.
/// This is static to avoid accessing `self` in the `VNDetectBarcodesRequest` callback.
private
static
var
returnImage
:
Bool
=
false
var
detectionSpeed
:
DetectionSpeed
=
DetectionSpeed
.
noDuplicates
...
...
@@ -261,6 +265,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
let
speed
:
Int
=
argReader
.
int
(
key
:
"speed"
)
??
0
let
timeoutMs
:
Int
=
argReader
.
int
(
key
:
"timeout"
)
??
0
symbologies
=
argReader
.
toSymbology
()
MobileScannerPlugin
.
returnImage
=
argReader
.
bool
(
key
:
"returnImage"
)
??
false
timeoutSeconds
=
Double
(
timeoutMs
)
/
1000.0
detectionSpeed
=
DetectionSpeed
(
rawValue
:
speed
)
!
...
...
Please
register
or
login
to post a comment