scandit-capacitor-datacapture-core 6.22.0-beta.1 → 6.22.0
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/ScanditCapacitorDatacaptureCore.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/core.js +7 -4
- package/dist/core.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/android/build.gradle
CHANGED
package/dist/core.js
CHANGED
|
@@ -760,8 +760,9 @@ class CameraController {
|
|
|
760
760
|
return CameraController._proxy.switchCameraToDesiredState(desiredState);
|
|
761
761
|
}
|
|
762
762
|
subscribeListener() {
|
|
763
|
+
var _a, _b;
|
|
763
764
|
CameraController._proxy.registerListenerForCameraEvents();
|
|
764
|
-
CameraController._proxy.subscribeDidChangeState();
|
|
765
|
+
(_b = (_a = CameraController._proxy).subscribeDidChangeState) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
765
766
|
this.eventEmitter.on(FrameSourceListenerEvents.didChangeState, (state) => {
|
|
766
767
|
this.privateCamera.listeners.forEach(listener => {
|
|
767
768
|
var _a;
|
|
@@ -2029,9 +2030,10 @@ class DataCaptureContextController {
|
|
|
2029
2030
|
});
|
|
2030
2031
|
}
|
|
2031
2032
|
subscribeListener() {
|
|
2033
|
+
var _a, _b, _c, _d;
|
|
2032
2034
|
this._proxy.registerListenerForEvents();
|
|
2033
|
-
this._proxy.subscribeDidChangeStatus();
|
|
2034
|
-
this._proxy.subscribeDidStartObservingContext();
|
|
2035
|
+
(_b = (_a = this._proxy).subscribeDidChangeStatus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
2036
|
+
(_d = (_c = this._proxy).subscribeDidStartObservingContext) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
2035
2037
|
this.eventEmitter.on(DataCaptureContextEvents.didChangeStatus, (contextStatus) => {
|
|
2036
2038
|
this.notifyListenersOfDidChangeStatus(contextStatus);
|
|
2037
2039
|
});
|
|
@@ -2458,8 +2460,9 @@ class DataCaptureViewController extends BaseController {
|
|
|
2458
2460
|
return this._proxy.removeAllOverlays();
|
|
2459
2461
|
}
|
|
2460
2462
|
subscribeListener() {
|
|
2463
|
+
var _a, _b;
|
|
2461
2464
|
this._proxy.registerListenerForViewEvents();
|
|
2462
|
-
this._proxy.subscribeDidChangeSize();
|
|
2465
|
+
(_b = (_a = this._proxy).subscribeDidChangeSize) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
2463
2466
|
this.eventEmitter.on(DataCaptureViewEvents.didChangeSize, (payload) => {
|
|
2464
2467
|
const payloadJSON = JSON.parse(payload);
|
|
2465
2468
|
const size = Size.fromJSON(payloadJSON.size);
|