scandit-capacitor-datacapture-core 6.21.0-beta.2 → 6.21.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.
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.swift_version = "5.7"
17
17
 
18
18
  s.dependency "Capacitor"
19
- s.dependency "scandit-datacapture-frameworks-core", '= 6.21.0-beta.2'
19
+ s.dependency "scandit-datacapture-frameworks-core", '= 6.21.0'
20
20
  end
@@ -56,7 +56,7 @@ repositories {
56
56
  }
57
57
 
58
58
  dependencies {
59
- def sdk_version = "6.21.0-beta.2"
59
+ def sdk_version = "6.21.0"
60
60
 
61
61
  implementation fileTree(dir: 'libs', include: ['*.jar'])
62
62
 
@@ -278,13 +278,22 @@ class ScanditCaptureCoreNative :
278
278
  }
279
279
 
280
280
  @PluginMethod
281
- fun subscribeContextListener(call: PluginCall) = call.resolve()
281
+ fun subscribeContextListener(call: PluginCall) {
282
+ coreModule.registerDataCaptureContextListener()
283
+ call.resolve()
284
+ }
282
285
 
283
286
  @PluginMethod
284
- fun subscribeViewListener(call: PluginCall) = call.resolve()
287
+ fun subscribeViewListener(call: PluginCall) {
288
+ coreModule.registerDataCaptureViewListener()
289
+ call.resolve()
290
+ }
285
291
 
286
292
  @PluginMethod
287
- fun unsubscribeViewListener(call: PluginCall) = call.resolve()
293
+ fun unsubscribeViewListener(call: PluginCall) {
294
+ coreModule.unregisterDataCaptureViewListener()
295
+ call.resolve()
296
+ }
288
297
 
289
298
  @PluginMethod
290
299
  fun getLastFrame(call: PluginCall) {
@@ -304,6 +313,12 @@ class ScanditCaptureCoreNative :
304
313
  }
305
314
  }
306
315
 
316
+ @PluginMethod
317
+ fun subscribeVolumeButtonObserver(call: PluginCall) = call.resolve()
318
+
319
+ @PluginMethod
320
+ fun unsubscribeVolumeButtonObserver(call: PluginCall) = call.resolve()
321
+
307
322
  //endregion
308
323
 
309
324
  override fun emit(eventName: String, payload: MutableMap<String, Any?>) {
package/dist/core.js CHANGED
@@ -565,6 +565,18 @@ class ImageBuffer {
565
565
  }
566
566
  }
567
567
 
568
+ var CameraPosition;
569
+ (function (CameraPosition) {
570
+ CameraPosition["WorldFacing"] = "worldFacing";
571
+ CameraPosition["UserFacing"] = "userFacing";
572
+ CameraPosition["Unspecified"] = "unspecified";
573
+ })(CameraPosition || (CameraPosition = {}));
574
+
575
+ var FrameSourceListenerEvents;
576
+ (function (FrameSourceListenerEvents) {
577
+ FrameSourceListenerEvents["didChangeState"] = "FrameSourceListener.onStateChanged";
578
+ })(FrameSourceListenerEvents || (FrameSourceListenerEvents = {}));
579
+
568
580
  class ImageFrameSourceController {
569
581
  static forImage(imageFrameSource) {
570
582
  const controller = new ImageFrameSourceController();
@@ -701,10 +713,6 @@ class PrivateFrameData {
701
713
  }
702
714
  }
703
715
 
704
- var FrameSourceListenerEvents;
705
- (function (FrameSourceListenerEvents) {
706
- FrameSourceListenerEvents["didChangeState"] = "FrameSourceListener.onStateChanged";
707
- })(FrameSourceListenerEvents || (FrameSourceListenerEvents = {}));
708
716
  class CameraController {
709
717
  static get _proxy() {
710
718
  return FactoryMaker.getInstance('CameraProxy');
@@ -979,13 +987,6 @@ __decorate([
979
987
  ignoreFromSerialization
980
988
  ], TorchSwitchControl.prototype, "view", void 0);
981
989
 
982
- var CameraPosition;
983
- (function (CameraPosition) {
984
- CameraPosition["WorldFacing"] = "worldFacing";
985
- CameraPosition["UserFacing"] = "userFacing";
986
- CameraPosition["Unspecified"] = "unspecified";
987
- })(CameraPosition || (CameraPosition = {}));
988
-
989
990
  var VideoResolution;
990
991
  (function (VideoResolution) {
991
992
  VideoResolution["Auto"] = "auto";