barkoder-cordova
Advanced tools
Comparing version 1.2.8 to 1.2.10
{ | ||
"name": "barkoder-cordova", | ||
"version": "1.2.8", | ||
"version": "1.2.10", | ||
"description": "Cordova plugin that connects to barkoderSDK which helps users scan barcodes with mobile devices", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -74,3 +74,3 @@ # barKoder Barcode Scanner SDK plugin for Cordova | ||
```bash | ||
ionic cordova plugin add barkoder-cordova-plugin | ||
cordova plugin add barkoder-cordova | ||
``` | ||
@@ -87,3 +87,3 @@ | ||
```bash | ||
ionic cordova plugin add “/your-path/barkoder-cordova” | ||
cordova plugin add “/your-path/barkoder-cordova” | ||
``` | ||
@@ -97,3 +97,3 @@ | ||
declare var Barkoder: any; | ||
declare var BarkoderConstants: any; | ||
import { BarcodeType } from 'plugins/barkoder-cordova-plugin/www/BarkoderConfig'; | ||
@@ -103,4 +103,4 @@ @ViewChild('barkoderView') barkoderViewRef!: ElementRef; | ||
setActiveBarcodeTypes() { | ||
Barkoder.setBarcodeTypeEnabled(BarkoderConstants.BarcodeType.CODE128, true); | ||
Barkoder.setBarcodeTypeEnabled(BarkoderConstants.BarcodeType.EAN13, true); | ||
Barkoder.setBarcodeTypeEnabled(BarcodeType.code128, true); | ||
Barkoder.setBarcodeTypeEnabled(BarcodeType.ean13, true); | ||
} | ||
@@ -107,0 +107,0 @@ |
@@ -179,2 +179,10 @@ var exec = require('cordova/exec'); | ||
exports.setDataMatrixDpmModeEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, 'setDataMatrixDpmModeEnabled', [enabled]); | ||
}; | ||
exports.configureBarkoder = function (barkoderConfig, success, error) { | ||
exec(success, error, barkoderScanner, 'configureBarkoder', [barkoderConfig]); | ||
}; | ||
// - Getters | ||
@@ -320,2 +328,6 @@ | ||
exec(success, error, barkoderScanner, 'isVINRestrictionsEnabled', []); | ||
}; | ||
exports.getBarkoderResolution = function (success, error) { | ||
exec(success, error, barkoderScanner, 'getBarkoderResolution', []); | ||
}; |
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
13472243
28213