Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -2,15 +2,15 @@ package dev.steenbakker.mobile_scanner | @@ -2,15 +2,15 @@ package dev.steenbakker.mobile_scanner | ||
| 2 | 2 | ||
| 3 | import android.os.Handler | 3 | import android.os.Handler |
| 4 | import android.os.Looper | 4 | import android.os.Looper |
| 5 | -import io.flutter.embedding.engine.plugins.FlutterPlugin | 5 | +import io.flutter.plugin.common.BinaryMessenger |
| 6 | import io.flutter.plugin.common.EventChannel | 6 | import io.flutter.plugin.common.EventChannel |
| 7 | 7 | ||
| 8 | -class BarcodeHandler(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) : EventChannel.StreamHandler { | 8 | +class BarcodeHandler(binaryMessenger: BinaryMessenger) : EventChannel.StreamHandler { |
| 9 | 9 | ||
| 10 | private var eventSink: EventChannel.EventSink? = null | 10 | private var eventSink: EventChannel.EventSink? = null |
| 11 | 11 | ||
| 12 | private val eventChannel = EventChannel( | 12 | private val eventChannel = EventChannel( |
| 13 | - flutterPluginBinding.binaryMessenger, | 13 | + binaryMessenger, |
| 14 | "dev.steenbakker.mobile_scanner/scanner/event" | 14 | "dev.steenbakker.mobile_scanner/scanner/event" |
| 15 | ) | 15 | ) |
| 16 | 16 |
-
Please register or login to post a comment