scandit-cordova-datacapture-core
Advanced tools
Comparing version 6.22.0-beta.1 to 6.22.0-beta.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
521843
92
0
3628
+ Addedscandit-datacapture-frameworks-core@6.22.0-beta.2(transitive)
- Removedscandit-datacapture-frameworks-core@6.22.0-beta.1(transitive)