Socket
Socket
Sign inDemoInstall

nativescript-barcodescanner

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-barcodescanner - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

40

barcodescanner.android.js

@@ -54,23 +54,23 @@ var barcodescanner = require("./barcodescanner-common");

if (arg !== null) {
// shown at the bottom of the scan UI, default is: "Place a barcode inside the viewfinder rectangle to scan it."
if (arg.message) {
intent.putExtra("PROMPT_MESSAGE", arg.message);
}
if (arg.preferFrontCamera === true) {
// if no front cam is found this will fall back to the back camera
intent.putExtra(com.google.zxing.client.android.Intents.Scan.CAMERA_ID, 1);
}
if (arg.showFlipCameraButton === true) {
intent.putExtra(com.google.zxing.client.android.Intents.Scan.SHOW_FLIP_CAMERA_BUTTON, true);
}
if (arg.orientation) {
// if not set, sensor orientation is used (rotates with the device)
intent.putExtra(com.google.zxing.client.android.Intents.Scan.ORIENTATION_LOCK, arg.orientation);
}
if (arg.formats) {
intent.putExtra(com.google.zxing.client.android.Intents.Scan.FORMATS, arg.formats);
// intent.putExtra(com.google.zxing.client.android.Intents.Scan.MODE, com.google.zxing.client.android.Intents.Scan.QR_CODE_MODE);
}
arg = arg || {};
// shown at the bottom of the scan UI, default is: "Place a barcode inside the viewfinder rectangle to scan it."
if (arg.message) {
intent.putExtra("PROMPT_MESSAGE", arg.message);
}
if (arg.preferFrontCamera === true) {
// if no front cam is found this will fall back to the back camera
intent.putExtra(com.google.zxing.client.android.Intents.Scan.CAMERA_ID, 1);
}
if (arg.showFlipCameraButton === true) {
intent.putExtra(com.google.zxing.client.android.Intents.Scan.SHOW_FLIP_CAMERA_BUTTON, true);
}
if (arg.orientation) {
// if not set, sensor orientation is used (rotates with the device)
intent.putExtra(com.google.zxing.client.android.Intents.Scan.ORIENTATION_LOCK, arg.orientation);
}
if (arg.formats) {
intent.putExtra(com.google.zxing.client.android.Intents.Scan.FORMATS, arg.formats);
// intent.putExtra(com.google.zxing.client.android.Intents.Scan.MODE, com.google.zxing.client.android.Intents.Scan.QR_CODE_MODE);
}

@@ -77,0 +77,0 @@ // rectangle size can be controlled as well (but don't bother as of yet)

{
"name": "nativescript-barcodescanner",
"version": "1.3.3",
"version": "1.3.4",
"description": "Scan QR/barcodes with a {N} app.",

@@ -5,0 +5,0 @@ "main": "barcodescanner.js",

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