@scrumble-nl/react-native-honeywell-scanner 1.0.70 → 1.0.71
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,7 +88,7 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
88
88
|
/*******************************/
|
|
89
89
|
|
|
90
90
|
@ReactMethod
|
|
91
|
-
public void startReader() {
|
|
91
|
+
public void startReader(Callback callBack) {
|
|
92
92
|
AidcManager.create(reactContext, new CreatedCallback() {
|
|
93
93
|
@Override
|
|
94
94
|
public void onCreated(AidcManager aidcManager) {
|
|
@@ -108,7 +108,7 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
108
108
|
|
|
109
109
|
final String message = "Scanner: " + event.getBarcodeReaderInfo().getName() + " is " + connected;
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
callBack.invoke(message);
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
}
|
package/package.json
CHANGED