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-05-31 15:48:44 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d1ac1192ff5032a1877ded477b9eafecbe890621
d1ac1192
1 parent
8236ee6b
use well defined error code for barcode errors on iOS
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
ios/Classes/MobileScannerPlugin.swift
ios/Classes/MobileScannerPlugin.swift
View file @
d1ac119
...
...
@@ -42,7 +42,10 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin {
init
(
barcodeHandler
:
BarcodeHandler
,
registry
:
FlutterTextureRegistry
)
{
self
.
mobileScanner
=
MobileScanner
(
registry
:
registry
,
mobileScannerCallback
:
{
barcodes
,
error
,
image
in
if
error
!=
nil
{
barcodeHandler
.
publishEvent
([
"name"
:
"error"
,
"data"
:
error
!.
localizedDescription
])
barcodeHandler
.
publishEvent
([
"name"
:
MobileScannerErrorCodes
.
BARCODE_ERROR
,
"data"
:
error
!.
localizedDescription
,
])
return
}
...
...
Please
register
or
login
to post a comment