scandit-capacitor-datacapture-barcode 7.1.0 → 7.1.2

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.
@@ -6,7 +6,7 @@ export declare class NativeSparkScanViewProxy extends BaseNativeProxy implements
6
6
  private barcodeFindButtonTappedListenerHandler;
7
7
  private didChangeViewStateHandler;
8
8
  private nativeEventSubscriptions;
9
- updateSparkScanView(viewJson: string): Promise<void>;
9
+ updateSparkScanView(_viewId: number | null, viewJson: string): Promise<void>;
10
10
  createSparkScanView(viewJson: string): Promise<void>;
11
11
  disposeSparkScanView(): Promise<void>;
12
12
  showSparkScanView(): Promise<void>;
package/dist/index.js CHANGED
@@ -2880,7 +2880,7 @@ class NativeSparkScanViewProxy extends BaseNativeProxy {
2880
2880
  super(...arguments);
2881
2881
  this.nativeEventSubscriptions = [];
2882
2882
  }
2883
- updateSparkScanView(viewJson) {
2883
+ updateSparkScanView(_viewId, viewJson) {
2884
2884
  return ScanditSparkScanPluginNative.updateSparkScanView({ View: viewJson });
2885
2885
  }
2886
2886
  createSparkScanView(viewJson) {
@@ -3147,8 +3147,8 @@ function initBarcodeProxy() {
3147
3147
  FactoryMaker.bindInstance('BarcodePickViewProxy', new NativeBarcodePickViewProxy());
3148
3148
  FactoryMaker.bindInstance('BarcodeFindProxy', new NativeBarcodeFindListenerProxy());
3149
3149
  FactoryMaker.bindInstance('BarcodeFindViewProxy', new NativeBarcodeFindViewProxy());
3150
- FactoryMaker.bindInstance('SparkScanListenerProxy', new NativeSparkScanListenerProxy());
3151
- FactoryMaker.bindInstance('SparkScanViewProxy', new NativeSparkScanViewProxy());
3150
+ FactoryMaker.bindLazyInstance('SparkScanListenerProxy', () => new NativeSparkScanListenerProxy());
3151
+ FactoryMaker.bindLazyInstance('SparkScanViewProxy', () => new NativeSparkScanViewProxy());
3152
3152
  FactoryMaker.bindInstance('BarcodeGeneratorProxy', new NativeBarcodeGeneratorProxy());
3153
3153
  }
3154
3154