@scrumble-nl/react-native-honeywell-scanner 1.0.45 → 1.0.47
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.
|
@@ -34,13 +34,6 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
34
34
|
public HoneywellScannerModule(ReactApplicationContext reactContext) {
|
|
35
35
|
super(reactContext);
|
|
36
36
|
this.reactContext = reactContext;
|
|
37
|
-
|
|
38
|
-
AidcManager.addBarcodeDeviceListener(new BarcodeDeviceListener() {
|
|
39
|
-
@Override
|
|
40
|
-
public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
|
|
41
|
-
connectedDevice = event.getBarcodeReaderInfo().getName();
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
37
|
}
|
|
45
38
|
|
|
46
39
|
@Override
|
|
@@ -83,6 +76,16 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
83
76
|
/** Methods Available from JS **/
|
|
84
77
|
/*******************************/
|
|
85
78
|
|
|
79
|
+
@ReactMethod
|
|
80
|
+
public void startBarcodeDeviceListener() {
|
|
81
|
+
AidcManager.addBarcodeDeviceListener(listener -> {});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// @ReactMethod
|
|
85
|
+
// public void stopBarcodeDeviceListener() {
|
|
86
|
+
// AidcManager.removeBarcodeDeviceListener();
|
|
87
|
+
// }
|
|
88
|
+
|
|
86
89
|
@ReactMethod
|
|
87
90
|
public void startReader(final Promise promise) {
|
|
88
91
|
AidcManager.create(reactContext, new CreatedCallback() {
|
package/package.json
CHANGED