@scrumble-nl/react-native-honeywell-scanner 1.0.65 → 1.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,8 +88,10 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
88
88
 
89
89
  if (manager != null) {
90
90
  promise.resolve(true);
91
- manager.addBarcodeDeviceListener(BarcodeDeviceListener listener) {
92
- listener.onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
91
+
92
+ manager.addBarcodeDeviceListener(new BarcodeDeviceListener() {
93
+ @Override
94
+ public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
93
95
  if (event.getConnectionStatus() == manager.BARCODE_DEVICE_CONNECTED) {
94
96
  BarcodeReaderInfo readerInfo = event.getBarcodeReaderInfo();
95
97
 
@@ -98,7 +100,13 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
98
100
  sendEvent(DEVICE_CHANGE, params);
99
101
  }
100
102
  }
101
- }
103
+ });
104
+
105
+
106
+ // manager.addBarcodeDeviceListener(BarcodeDeviceListener listener) {
107
+ // listener.onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
108
+ // }
109
+ // }
102
110
  }
103
111
  }
104
112
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scrumble-nl/react-native-honeywell-scanner",
3
3
  "title": "React Native Honeywell Scanner-v2",
4
- "version": "1.0.65",
4
+ "version": "1.0.66",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",