scandit-cordova-datacapture-core
Advanced tools
Comparing version 6.27.1 to 6.28.0-beta.1
@@ -30,5 +30,3 @@ export declare enum CordovaFunction { | ||
UpdateDataCaptureView = "updateDataCaptureView", | ||
AddOverlay = "addOverlay", | ||
RemoveOverlay = "removeOverlay", | ||
RemoveAllOverlays = "removeAllOverlays" | ||
RemoveDataCaptureView = "removeDataCaptureView" | ||
} | ||
@@ -35,0 +33,0 @@ export declare const Cordova: { |
@@ -12,7 +12,5 @@ import { BaseNativeProxy, DataCaptureViewProxy } from 'scandit-datacapture-frameworks-core'; | ||
updateView(viewJson: string): Promise<void>; | ||
addOverlay(overlayJson: string): Promise<void>; | ||
removeOverlay(overlayJson: string): Promise<void>; | ||
removeAllOverlays(): Promise<void>; | ||
removeView(): Promise<void>; | ||
private static get cordovaExec(); | ||
private notifyListeners; | ||
} |
@@ -301,17 +301,7 @@ var core = require('scandit-cordova-datacapture-core.Core'); | ||
} | ||
addOverlay(overlayJson) { | ||
removeView() { | ||
return new Promise((resolve, reject) => { | ||
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.AddOverlay, [overlayJson]); | ||
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.RemoveDataCaptureView, null); | ||
}); | ||
} | ||
removeOverlay(overlayJson) { | ||
return new Promise((resolve, reject) => { | ||
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.RemoveOverlay, [overlayJson]); | ||
}); | ||
} | ||
removeAllOverlays() { | ||
return new Promise((resolve, reject) => { | ||
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.RemoveAllOverlays, null); | ||
}); | ||
} | ||
static get cordovaExec() { | ||
@@ -410,5 +400,3 @@ return Cordova.exec; | ||
CordovaFunction["UpdateDataCaptureView"] = "updateDataCaptureView"; | ||
CordovaFunction["AddOverlay"] = "addOverlay"; | ||
CordovaFunction["RemoveOverlay"] = "removeOverlay"; | ||
CordovaFunction["RemoveAllOverlays"] = "removeAllOverlays"; | ||
CordovaFunction["RemoveDataCaptureView"] = "removeDataCaptureView"; | ||
})(CordovaFunction || (CordovaFunction = {})); | ||
@@ -559,10 +547,13 @@ // tslint:disable-next-line:variable-name | ||
}); | ||
this.baseDataCaptureView = new core.BaseDataCaptureView(); | ||
this.baseDataCaptureView = new core.BaseDataCaptureView(false); | ||
} | ||
connectToElement(element) { | ||
this.htmlElement = element; | ||
this.htmlElementState = new HTMLElementState(); | ||
// Initial update | ||
this.elementDidChange(); | ||
this.subscribeToChangesOnHTMLElement(); | ||
// add view to native hierarchy | ||
this.baseDataCaptureView.createNativeView().then(() => { | ||
this.htmlElement = element; | ||
this.htmlElementState = new HTMLElementState(); | ||
// Initial update | ||
this.elementDidChange(); | ||
this.subscribeToChangesOnHTMLElement(); | ||
}); | ||
} | ||
@@ -573,2 +564,4 @@ detachFromElement() { | ||
this.elementDidChange(); | ||
// Remove view from native hierarchy | ||
this.baseDataCaptureView.removeNativeView(); | ||
} | ||
@@ -575,0 +568,0 @@ setFrame(frame, isUnderContent = false) { |
{ | ||
"name": "scandit-cordova-datacapture-core", | ||
"version": "6.27.1", | ||
"version": "6.28.0-beta.1", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -25,3 +25,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"scandit-datacapture-frameworks-core": "6.27.1" | ||
"scandit-datacapture-frameworks-core": "6.28.0-beta.1" | ||
}, | ||
@@ -28,0 +28,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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
509417
3852
2
+ Addedscandit-datacapture-frameworks-core@6.28.0-beta.1(transitive)
- Removedscandit-datacapture-frameworks-core@6.27.1(transitive)