@scrumble-nl/react-native-honeywell-scanner 1.0.41 → 1.0.42
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.
|
@@ -44,18 +44,24 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
44
44
|
public void onCreate() {
|
|
45
45
|
super.onCreate();
|
|
46
46
|
|
|
47
|
-
AidcManager.addBarcodeDeviceListener(
|
|
48
|
-
|
|
47
|
+
AidcManager.addBarcodeDeviceListener(new BarcodeDeviceListener() {
|
|
48
|
+
@Override
|
|
49
|
+
public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
|
|
49
50
|
connectedDevice = event.getBarcodeReaderInfo().getName();
|
|
50
51
|
}
|
|
51
|
-
}
|
|
52
|
+
})
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
@Override
|
|
55
56
|
public void onStop() {
|
|
56
57
|
super.onStop();
|
|
57
58
|
|
|
58
|
-
AidcManager.removeBarcodeDeviceListener(
|
|
59
|
+
AidcManager.removeBarcodeDeviceListener(new BarcodeDeviceListener() {
|
|
60
|
+
@Override
|
|
61
|
+
public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
|
|
62
|
+
connectedDevice = event.getBarcodeReaderInfo().getName();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
/**
|
package/package.json
CHANGED