Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
DemoAppModel.prototype.doCheckHasCameraPermission = function () {
barcodescanner.hasCameraPermission().then(
function(granted) {
dialogs.alert({
title: "Permission granted?",
message: granted ? "YES" : "NO",
okButtonText: "OK"
})
}
)
};