Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scandit-cordova-datacapture-core

Package Overview
Dependencies
Maintainers
3
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scandit-cordova-datacapture-core - npm Package Compare versions

Comparing version 6.22.0-beta.1 to 6.22.0-beta.2

src/android/actions/ActionUnsubscribeContext.kt

1

dist/dts/Cordova/CameraProxy.d.ts

@@ -12,4 +12,3 @@ import { BaseNativeProxy, CameraPosition, CameraProxy } from 'scandit-datacapture-frameworks-core';

unregisterListenerForCameraEvents(): void;
subscribeDidChangeState(): void;
private notifyListeners;
}

@@ -7,3 +7,5 @@ export declare enum CordovaFunction {

SubscribeContextListener = "subscribeContextListener",
UnsubscribeContextListener = "unsubscribeContextListener",
SubscribeFrameSourceListener = "subscribeFrameSourceListener",
UnsubscribeFrameSourceListener = "unsubscribeFrameSourceListener",
SetViewPositionAndSize = "setViewPositionAndSize",

@@ -15,2 +17,3 @@ ShowView = "showView",

SubscribeViewListener = "subscribeViewListener",
UnsubscribeViewListener = "unsubscribeViewListener",
GetCurrentCameraState = "getCurrentCameraState",

@@ -17,0 +20,0 @@ GetIsTorchAvailable = "getIsTorchAvailable",

@@ -14,5 +14,3 @@ import { BaseNativeProxy, DataCaptureContext, DataCaptureContextProxy } from 'scandit-datacapture-frameworks-core';

unsubscribeListener(): void;
subscribeDidChangeStatus(): void;
subscribeDidStartObservingContext(): void;
private notifyListeners;
}

@@ -7,3 +7,2 @@ import { BaseNativeProxy, DataCaptureViewProxy } from 'scandit-datacapture-frameworks-core';

unregisterListenerForViewEvents(): void;
subscribeDidChangeSize(): void;
setPositionAndSize(top: number, left: number, width: number, height: number, shouldBeUnderWebView: boolean): Promise<void>;

@@ -10,0 +9,0 @@ show(): Promise<void>;

@@ -129,6 +129,2 @@ var core = require('scandit-cordova-datacapture-core.Core');

var FrameSourceListenerEvent;
(function (FrameSourceListenerEvent) {
FrameSourceListenerEvent["didChangeState"] = "FrameSourceListener.onStateChanged";
})(FrameSourceListenerEvent || (FrameSourceListenerEvent = {}));
class NativeCameraProxy extends core.BaseNativeProxy {

@@ -166,10 +162,9 @@ static get cordovaExec() {

registerListenerForCameraEvents() {
// https://scandit.atlassian.net/browse/SDC-19307
NativeCameraProxy.cordovaExec(this.notifyListeners.bind(this), null, CordovaFunction.SubscribeFrameSourceListener, null);
}
unregisterListenerForCameraEvents() {
// https://scandit.atlassian.net/browse/SDC-19307
new Promise((resolve, reject) => {
NativeCameraProxy.cordovaExec(resolve, reject, CordovaFunction.UnsubscribeFrameSourceListener, null);
});
}
subscribeDidChangeState() {
NativeCameraProxy.cordovaExec(this.notifyListeners.bind(this), null, CordovaFunction.SubscribeFrameSourceListener, null);
}
notifyListeners(event) {

@@ -237,10 +232,6 @@ if (!event) {

unsubscribeListener() {
// TODO: https://scandit.atlassian.net/browse/SDC-19307
new Promise((resolve, reject) => {
NativeDataCaptureContextProxy.cordovaExec(resolve, reject, CordovaFunction.UnsubscribeContextListener, null);
});
}
subscribeDidChangeStatus() {
// TODO: https://scandit.atlassian.net/browse/SDC-19307
}
subscribeDidStartObservingContext() {
// TODO: https://scandit.atlassian.net/browse/SDC-19307
}
notifyListeners(event) {

@@ -295,7 +286,4 @@ if (!event) {

unregisterListenerForViewEvents() {
// https://scandit.atlassian.net/browse/SDC-19307
NativeDataCaptureViewProxy.cordovaExec(null, null, CordovaFunction.UnsubscribeViewListener, null);
}
subscribeDidChangeSize() {
// https://scandit.atlassian.net/browse/SDC-19307
}
setPositionAndSize(top, left, width, height, shouldBeUnderWebView) {

@@ -374,3 +362,5 @@ return new Promise((resolve, reject) => {

CordovaFunction["SubscribeContextListener"] = "subscribeContextListener";
CordovaFunction["UnsubscribeContextListener"] = "unsubscribeContextListener";
CordovaFunction["SubscribeFrameSourceListener"] = "subscribeFrameSourceListener";
CordovaFunction["UnsubscribeFrameSourceListener"] = "unsubscribeFrameSourceListener";
CordovaFunction["SetViewPositionAndSize"] = "setViewPositionAndSize";

@@ -382,2 +372,3 @@ CordovaFunction["ShowView"] = "showView";

CordovaFunction["SubscribeViewListener"] = "subscribeViewListener";
CordovaFunction["UnsubscribeViewListener"] = "unsubscribeViewListener";
CordovaFunction["GetCurrentCameraState"] = "getCurrentCameraState";

@@ -384,0 +375,0 @@ CordovaFunction["GetIsTorchAvailable"] = "getIsTorchAvailable";

{
"name": "scandit-cordova-datacapture-core",
"version": "6.22.0-beta.1",
"version": "6.22.0-beta.2",
"description": "Scandit Data Capture SDK for Cordova",

@@ -24,3 +24,3 @@ "license": "Apache-2.0",

"dependencies": {
"scandit-datacapture-frameworks-core": "6.22.0-beta.1"
"scandit-datacapture-frameworks-core": "6.22.0-beta.2"
},

@@ -27,0 +27,0 @@ "devDependencies": {},

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc