scandit-cordova-datacapture-core
Advanced tools
Comparing version 6.5.3 to 6.6.0-beta.1
{ | ||
"name": "scandit-cordova-datacapture-core", | ||
"version": "6.5.3", | ||
"version": "6.6.0-beta.1", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -55,3 +55,5 @@ "use strict"; | ||
get isTorchAvailable() { | ||
return Cordova_1.Cordova.defaults.Camera.torchAvailability[this.position]; | ||
// tslint:disable-next-line:no-console | ||
console.warn('isTorchAvailable is deprecated. Use getIsTorchAvailable instead.'); | ||
return false; | ||
} | ||
@@ -72,2 +74,5 @@ set desiredTorchState(desiredTorchState) { | ||
} | ||
getIsTorchAvailable() { | ||
return this.proxy.getIsTorchAvailable(); | ||
} | ||
addListener(listener) { | ||
@@ -74,0 +79,0 @@ if (listener == null) { |
@@ -77,15 +77,8 @@ "use strict"; | ||
setProperty(name, value) { | ||
switch (name) { | ||
case PrivateCameraProperty.CameraAPI: | ||
this.api = value; | ||
break; | ||
} | ||
this[name] = value; | ||
} | ||
getProperty(name) { | ||
switch (name) { | ||
case PrivateCameraProperty.CameraAPI: | ||
return this.api; | ||
} | ||
return this[name]; | ||
} | ||
} | ||
exports.CameraSettings = CameraSettings; |
@@ -15,4 +15,9 @@ "use strict"; | ||
} | ||
getIsTorchAvailable() { | ||
return new Promise((resolve, reject) => { | ||
CameraProxy.cordovaExec(resolve, reject, Cordova_1.CordovaFunction.GetIsTorchAvailable, [this.camera.position]); | ||
}); | ||
} | ||
} | ||
exports.CameraProxy = CameraProxy; | ||
CameraProxy.cordovaExec = Cordova_1.Cordova.exec; |
@@ -22,2 +22,3 @@ "use strict"; | ||
CordovaFunction["GetCurrentCameraState"] = "getCurrentCameraState"; | ||
CordovaFunction["GetIsTorchAvailable"] = "getIsTorchAvailable"; | ||
CordovaFunction["EmitFeedback"] = "emitFeedback"; | ||
@@ -24,0 +25,0 @@ CordovaFunction["SubscribeVolumeButtonObserver"] = "subscribeVolumeButtonObserver"; |
@@ -15,3 +15,2 @@ "use strict"; | ||
availablePositions: json.Camera.availablePositions, | ||
torchAvailability: json.Camera.torchAvailability, | ||
}, | ||
@@ -18,0 +17,0 @@ DataCaptureView: { |
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
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
243219
114
2149
2