@scrumble-nl/react-native-honeywell-scanner 1.0.44 → 1.0.45
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,16 +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
|
-
|
|
39
|
-
@Override
|
|
40
|
-
public String getName() {
|
|
41
|
-
return "HoneywellScanner";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@Override
|
|
45
|
-
protected void onCreate(Bundle savedInstanceState) {
|
|
46
|
-
super.onCreate(savedInstanceState);
|
|
47
37
|
|
|
48
38
|
AidcManager.addBarcodeDeviceListener(new BarcodeDeviceListener() {
|
|
49
39
|
@Override
|
|
@@ -54,15 +44,8 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
54
44
|
}
|
|
55
45
|
|
|
56
46
|
@Override
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
AidcManager.removeBarcodeDeviceListener(new BarcodeDeviceListener() {
|
|
61
|
-
@Override
|
|
62
|
-
public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
|
|
63
|
-
connectedDevice = event.getBarcodeReaderInfo().getName();
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
public String getName() {
|
|
48
|
+
return "HoneywellScanner";
|
|
66
49
|
}
|
|
67
50
|
|
|
68
51
|
/**
|
package/package.json
CHANGED