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
2023-10-24 12:55:04 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ffea90b82a821ec011cfc647abb8d5cc7e4b839
2ffea90b
1 parent
9a442fea
add missing dispatch queue switch in BarcodeHandler.swift for iOS; remove unused attribute
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
ios/Classes/BarcodeHandler.swift
ios/Classes/BarcodeHandler.swift
View file @
2ffea90
...
...
@@ -9,9 +9,6 @@ import Flutter
import
Foundation
public
class
BarcodeHandler
:
NSObject
,
FlutterStreamHandler
{
var
event
:
[
String
:
Any
?]
=
[:]
private
var
eventSink
:
FlutterEventSink
?
private
let
eventChannel
:
FlutterEventChannel
...
...
@@ -23,8 +20,9 @@ public class BarcodeHandler: NSObject, FlutterStreamHandler {
}
func
publishEvent
(
_
event
:
[
String
:
Any
?])
{
self
.
event
=
event
eventSink
?(
event
)
DispatchQueue
.
main
.
async
{
self
.
eventSink
?(
event
)
}
}
public
func
onListen
(
withArguments
arguments
:
Any
?,
...
...
Please
register
or
login
to post a comment