File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
android/src/main/kotlin/dev/steenbakker/mobile_scanner Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ class MobileScanner(
46
46
private val textureRegistry : TextureRegistry ,
47
47
private val mobileScannerCallback : MobileScannerCallback ,
48
48
private val mobileScannerErrorCallback : MobileScannerErrorCallback ,
49
- private val barcodeScannerFactory : (options: BarcodeScannerOptions ? ) -> BarcodeScanner = ::defaultBarcodeScannerFactory,
50
49
private val deviceOrientationListener : DeviceOrientationListener ,
50
+ private val barcodeScannerFactory : (options: BarcodeScannerOptions ? ) -> BarcodeScanner = ::defaultBarcodeScannerFactory,
51
51
) {
52
52
53
53
// / Internal variables
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ class MobileScannerHandler(
84
84
" dev.steenbakker.mobile_scanner/scanner/method" )
85
85
methodChannel!! .setMethodCallHandler(this )
86
86
87
+ val deviceOrientationListener = DeviceOrientationListener (activity)
88
+
87
89
deviceOrientationChannel = EventChannel (binaryMessenger,
88
90
" dev.steenbakker.mobile_scanner/scanner/deviceOrientation" )
89
91
deviceOrientationChannel!! .setStreamHandler(deviceOrientationListener)
You can’t perform that action at this time.
0 commit comments