nativescript-barcodescanner
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -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", |
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
1409294
319