scandit-capacitor-datacapture-barcode 7.2.0-beta.1 → 7.2.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.
@@ -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
@@ -2564,7 +2564,7 @@ class NativeSparkScanViewProxy extends BaseNativeProxy {
2564
2564
  super(...arguments);
2565
2565
  this.nativeEventSubscriptions = [];
2566
2566
  }
2567
- updateSparkScanView(viewJson) {
2567
+ updateSparkScanView(_viewId, viewJson) {
2568
2568
  return ScanditSparkScanPluginNative.updateSparkScanView({ View: viewJson });
2569
2569
  }
2570
2570
  createSparkScanView(viewJson) {
@@ -2722,8 +2722,8 @@ function initBarcodeProxy() {
2722
2722
  FactoryMaker.bindInstance('BarcodePickViewProxy', new NativeBarcodePickViewProxy());
2723
2723
  FactoryMaker.bindInstance('BarcodeFindProxy', new NativeBarcodeFindListenerProxy());
2724
2724
  FactoryMaker.bindInstance('BarcodeFindViewProxy', new NativeBarcodeFindViewProxy());
2725
- FactoryMaker.bindInstance('SparkScanListenerProxy', new NativeSparkScanListenerProxy());
2726
- FactoryMaker.bindInstance('SparkScanViewProxy', new NativeSparkScanViewProxy());
2725
+ FactoryMaker.bindLazyInstance('SparkScanListenerProxy', () => new NativeSparkScanListenerProxy());
2726
+ FactoryMaker.bindLazyInstance('SparkScanViewProxy', () => new NativeSparkScanViewProxy());
2727
2727
  FactoryMaker.bindInstance('BarcodeGeneratorProxy', new NativeBarcodeGeneratorProxy());
2728
2728
  }
2729
2729