@scrumble-nl/react-native-honeywell-scanner 1.4.8 → 1.4.10
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.
package/android/src/main/java/com/scrumble/honeywellscannerinterface/HoneywellScannerModule.java
CHANGED
|
@@ -60,6 +60,8 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
60
60
|
if (D) Log.d(HoneyWellTAG, "HoneywellBarcodeReader - Barcode scan read");
|
|
61
61
|
WritableMap params = Arguments.createMap();
|
|
62
62
|
params.putString("data", barcodeReadEvent.getBarcodeData());
|
|
63
|
+
params.putString("aimId", barcodeReadEvent.getAimId());
|
|
64
|
+
params.putString("charset", barcodeReadEvent.getCharset());
|
|
63
65
|
sendEvent(BARCODE_READ_SUCCESS, params);
|
|
64
66
|
}
|
|
65
67
|
|
|
@@ -84,7 +86,6 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
84
86
|
reader.setProperty(BarcodeReader.PROPERTY_EAN_13_FIVE_CHAR_ADDENDA_ENABLED, true);
|
|
85
87
|
reader.setProperty(BarcodeReader.PROPERTY_DATAMATRIX_ENABLED, true);
|
|
86
88
|
reader.setProperty(BarcodeReader.PROPERTY_GS1_128_ENABLED, true);
|
|
87
|
-
reader.setProperty(BarcodeReader.PROPERTY_DATA_PROCESSOR_SYMBOLOGY_PREFIX, true);
|
|
88
89
|
reader.setProperty(BarcodeReader.DATA_PROCESSOR_SYMBOLOGY_ID_AIM, true);
|
|
89
90
|
promise.resolve(true);
|
|
90
91
|
} catch (ScannerUnavailableException | UnsupportedPropertyException e) {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
* @param {String} eventName Name of event one of barcodeReadSuccess, barcodeReadFail
|
|
4
4
|
* @param {Function} handler Event handler
|
|
5
5
|
*/
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type BarcodeEvent = {
|
|
7
7
|
data: string;
|
|
8
|
-
|
|
8
|
+
aimId: string;
|
|
9
|
+
charset: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type ScanEvent = (event: BarcodeEvent) => void;
|
|
9
12
|
interface Scanner {
|
|
10
13
|
registerListener: (event: ScanEvent) => void;
|
|
11
14
|
clearEventListeners: () => void;
|
package/package.json
CHANGED