barkoder-cordova
Advanced tools
Comparing version 1.5.2 to 1.5.6
{ | ||
"name": "barkoder-cordova", | ||
"version": "1.5.2", | ||
"version": "1.5.6", | ||
"description": "Cordova plugin that connects to barkoderSDK which helps users scan barcodes with mobile devices", | ||
@@ -21,3 +21,4 @@ "cordova": { | ||
"www/", | ||
"plugin.xml" | ||
"plugin.xml", | ||
"LICENSE" | ||
], | ||
@@ -45,2 +46,2 @@ "main": "index.js", | ||
] | ||
} | ||
} |
@@ -95,7 +95,27 @@ # barKoder Barcode Scanner SDK plugin for Cordova | ||
declare var Barkoder: any; | ||
import { BarcodeType } from 'plugins/barkoder-cordova-plugin/www/BarkoderConfig'; | ||
import { BarkoderResult, BarcodeType } from 'plugins/barkoder-cordova-plugin/www/BarkoderConfig'; | ||
@ViewChild('barkoderView') barkoderViewRef!: ElementRef; | ||
constructor(private platform: Platform) {} | ||
ngAfterViewInit() { | ||
this.platform.ready().then(() => { | ||
Barkoder.registerWithLicenseKey("YOUR_LICENSE_KEY"); | ||
setTimeout(() => { | ||
const boundingRect = this.barkoderViewRef.nativeElement.getBoundingClientRect() as DOMRect; | ||
Barkoder.initialize( | ||
Math.round(boundingRect.width), | ||
Math.round(boundingRect.height), | ||
Math.round(boundingRect.x), | ||
Math.round(boundingRect.y) | ||
); | ||
this.setBarkoderSettings(); | ||
this.setActiveBarcodeTypes(); | ||
}, 200); | ||
}); | ||
} | ||
setActiveBarcodeTypes() { | ||
Barkoder.setBarcodeTypeEnabled(BarcodeType.qr, true); | ||
Barkoder.setBarcodeTypeEnabled(BarcodeType.code128, true); | ||
@@ -108,24 +128,15 @@ Barkoder.setBarcodeTypeEnabled(BarcodeType.ean13, true); | ||
Barkoder.setRegionOfInterest(5, 5, 90, 90); | ||
Barkoder.setCloseSessionOnResultEnabled(false); | ||
Barkoder.setImageResultEnabled(true); | ||
Barkoder.setBarcodeThumbnailOnResultEnabled(true); | ||
Barkoder.setBeepOnSuccessEnabled(true); | ||
Barkoder.setPinchToZoomEnabled(true); | ||
Barkoder.setZoomFactor(2.0); | ||
} | ||
async startScanning() { | ||
const boundingRect = this.barkoderViewRef.nativeElement.getBoundingClientRect() as DOMRect; | ||
Barkoder.registerWithLicenseKey("your_license_key"); | ||
await Barkoder.initialize( | ||
Math.round(boundingRect.width), | ||
Math.round(boundingRect.height), | ||
Math.round(boundingRect.x), | ||
Math.round(boundingRect.y)) | ||
this.setBarkoderSettings(); | ||
this.setActiveBarcodeTypes(); | ||
Barkoder.startScanning((barkoderResult: any) => { | ||
console.log("Result: " + barkoderResult.textualData); | ||
startScanning() { | ||
Barkoder.startScanning((data: any) => { | ||
console.log("startScanning results called"); | ||
const barkoderResult = new BarkoderResult(data); | ||
if (barkoderResult) { | ||
barkoderResult.decoderResults.forEach((result, index) => { | ||
console.log(`Result ${index + 1}: ${result.textualData}`); | ||
}); | ||
} | ||
}, (err: any) => { | ||
@@ -132,0 +143,0 @@ console.log(err); |
@@ -71,8 +71,8 @@ [ | ||
"userDefinedMetadata" : { | ||
"stride" : "32", | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"stride" : "32", | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"task" : "obb", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"imgsz" : "[256, 384]", | ||
@@ -79,0 +79,0 @@ "date" : "2024-08-01T09:34:45.251931", |
@@ -71,10 +71,10 @@ [ | ||
"userDefinedMetadata" : { | ||
"stride" : "32", | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"stride" : "32", | ||
"task" : "obb", | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"imgsz" : "[384, 512]", | ||
"date" : "2024-08-01T17:19:19.267647", | ||
"imgsz" : "[384, 512]", | ||
"batch" : "1", | ||
@@ -81,0 +81,0 @@ "names" : "{0: 'id_mrz_image', 1: 'mrz_2', 2: 'mrz_3', 3: 'id_mrz', 4: 'id_image', 5: 'face', 6: 'vin', 7: 'signature'}" |
@@ -73,6 +73,6 @@ [ | ||
"stride" : "32", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"task" : "obb", | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"imgsz" : "[256, 384]", | ||
@@ -79,0 +79,0 @@ "date" : "2024-08-01T09:34:45.251931", |
@@ -72,7 +72,7 @@ [ | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"stride" : "32", | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"task" : "obb", | ||
"stride" : "32", | ||
"date" : "2024-08-01T17:19:19.267647", | ||
@@ -79,0 +79,0 @@ "imgsz" : "[384, 512]", |
@@ -415,2 +415,10 @@ { | ||
}, | ||
"QR": { | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
"QR Micro": { | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
"general": { | ||
@@ -675,3 +683,4 @@ "maxThreads": 2, | ||
"ID Document": { | ||
"enabled": true | ||
"enabled": true, | ||
"masterChecksum": 0 | ||
}, | ||
@@ -720,6 +729,8 @@ "general": { | ||
"QR": { | ||
"enabled": true | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
"QR Micro": { | ||
"enabled": true | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
@@ -726,0 +737,0 @@ "Code 128": { |
@@ -415,2 +415,10 @@ { | ||
}, | ||
"QR": { | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
"QR Micro": { | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
"general": { | ||
@@ -675,3 +683,4 @@ "maxThreads": 2, | ||
"ID Document": { | ||
"enabled": true | ||
"enabled": true, | ||
"masterChecksum": 0 | ||
}, | ||
@@ -720,6 +729,8 @@ "general": { | ||
"QR": { | ||
"enabled": true | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
"QR Micro": { | ||
"enabled": true | ||
"enabled": true, | ||
"dpmMode": 1 | ||
}, | ||
@@ -726,0 +737,0 @@ "Code 128": { |
@@ -1,12 +0,13 @@ | ||
export enum DecodingSpeed { | ||
fast, | ||
normal, | ||
slow | ||
export enum DecodingSpeed { | ||
fast, | ||
normal, | ||
slow, | ||
rigorous | ||
} | ||
export enum FormattingType { | ||
disabled, | ||
automatic, | ||
gs1, | ||
aamva | ||
export enum FormattingType { | ||
disabled, | ||
automatic, | ||
gs1, | ||
aamva | ||
} | ||
@@ -24,16 +25,16 @@ | ||
export enum Code39ChecksumType { | ||
disabled, | ||
enabled | ||
export enum Code39ChecksumType { | ||
disabled, | ||
enabled | ||
} | ||
export enum Code11ChecksumType { | ||
disabled, | ||
single, | ||
double | ||
export enum Code11ChecksumType { | ||
disabled, | ||
single, | ||
double | ||
} | ||
export enum BarkoderResolution { | ||
normal, | ||
high | ||
export enum BarkoderResolution { | ||
normal, | ||
high | ||
} | ||
@@ -74,175 +75,240 @@ | ||
export class BarkoderConfig { | ||
locationLineColor?: string; | ||
locationLineWidth?: number; | ||
roiLineColor?: string; | ||
roiLineWidth?: number; | ||
roiOverlayBackgroundColor?: string; | ||
closeSessionOnResultEnabled?: boolean; | ||
imageResultEnabled?: boolean; | ||
locationInImageResultEnabled?: boolean; | ||
locationInPreviewEnabled?: boolean; | ||
pinchToZoomEnabled?: boolean; | ||
regionOfInterestVisible?: boolean; | ||
barkoderResolution?: BarkoderResolution; | ||
beepOnSuccessEnabled?: boolean; | ||
vibrateOnSuccessEnabled?: boolean; | ||
decoder?: DekoderConfig; | ||
constructor(config: Partial<BarkoderConfig>) { | ||
Object.assign(this, config); | ||
} | ||
locationLineColor?: string; | ||
locationLineWidth?: number; | ||
roiLineColor?: string; | ||
roiLineWidth?: number; | ||
roiOverlayBackgroundColor?: string; | ||
closeSessionOnResultEnabled?: boolean; | ||
imageResultEnabled?: boolean; | ||
locationInImageResultEnabled?: boolean; | ||
locationInPreviewEnabled?: boolean; | ||
pinchToZoomEnabled?: boolean; | ||
regionOfInterestVisible?: boolean; | ||
barkoderResolution?: BarkoderResolution; | ||
beepOnSuccessEnabled?: boolean; | ||
vibrateOnSuccessEnabled?: boolean; | ||
decoder?: DekoderConfig; | ||
constructor(config: Partial<BarkoderConfig>) { | ||
Object.assign(this, config); | ||
} | ||
export class DekoderConfig { | ||
aztec?: BarcodeConfig; | ||
aztecCompact?: BarcodeConfig; | ||
qr?: BarcodeConfig; | ||
qrMicro?: BarcodeConfig; | ||
code128?: BarcodeConfigWithLength; | ||
code93?: BarcodeConfigWithLength; | ||
code39?: Code39BarcodeConfig; | ||
codabar?: BarcodeConfigWithLength; | ||
code11?: Code11BarcodeConfig; | ||
msi?: MSIBarcodeConfig; | ||
upcA?: BarcodeConfig; | ||
upcE?: BarcodeConfig; | ||
upcE1?: BarcodeConfig; | ||
ean13?: BarcodeConfig; | ||
ean8?: BarcodeConfig; | ||
pdf417?: BarcodeConfig; | ||
pdf417Micro?: BarcodeConfig; | ||
datamatrix?: DatamatrixBarcodeConfig; | ||
code25?: BarcodeConfig; | ||
interleaved25?: BarcodeConfig; | ||
itf14?: BarcodeConfig; | ||
iata25?: BarcodeConfig; | ||
matrix25?: BarcodeConfig; | ||
datalogic25?: BarcodeConfig; | ||
coop25?: BarcodeConfig; | ||
code32?: BarcodeConfig; | ||
telepen?: BarcodeConfig; | ||
dotcode?: BarcodeConfig; | ||
idDocument?: BarcodeConfig; | ||
general?: GeneralSettings; | ||
constructor(config: Partial<DekoderConfig>) { | ||
Object.assign(this, config); | ||
} | ||
} | ||
export class DekoderConfig { | ||
aztec?: BarcodeConfig; | ||
aztecCompact?: BarcodeConfig; | ||
qr?: BarcodeConfigWithDpmMode; | ||
qrMicro?: BarcodeConfigWithDpmMode; | ||
code128?: BarcodeConfigWithLength; | ||
code93?: BarcodeConfigWithLength; | ||
code39?: Code39BarcodeConfig; | ||
codabar?: BarcodeConfigWithLength; | ||
code11?: Code11BarcodeConfig; | ||
msi?: MSIBarcodeConfig; | ||
upcA?: BarcodeConfig; | ||
upcE?: BarcodeConfig; | ||
upcE1?: BarcodeConfig; | ||
ean13?: BarcodeConfig; | ||
ean8?: BarcodeConfig; | ||
pdf417?: BarcodeConfig; | ||
pdf417Micro?: BarcodeConfig; | ||
datamatrix?: BarcodeConfigWithDpmMode; | ||
code25?: BarcodeConfig; | ||
interleaved25?: BarcodeConfig; | ||
itf14?: BarcodeConfig; | ||
iata25?: BarcodeConfig; | ||
matrix25?: BarcodeConfig; | ||
datalogic25?: BarcodeConfig; | ||
coop25?: BarcodeConfig; | ||
code32?: BarcodeConfig; | ||
telepen?: BarcodeConfig; | ||
dotcode?: BarcodeConfig; | ||
idDocument?: IdDocumentBarcodeConfig; | ||
general?: GeneralSettings; | ||
constructor(config: Partial<DekoderConfig>) { | ||
Object.assign(this, config); | ||
} | ||
export class BarcodeConfig { | ||
enabled?: boolean; | ||
constructor(config: Partial<BarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
} | ||
export class BarcodeConfig { | ||
enabled?: boolean; | ||
constructor(config: Partial<BarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
} | ||
export class BarcodeConfigWithLength { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
constructor(config: Partial<BarcodeConfigWithLength>) { | ||
Object.assign(this, config); | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
export class BarcodeConfigWithLength { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
constructor(config: Partial<BarcodeConfigWithLength>) { | ||
Object.assign(this, config); | ||
} | ||
export class MSIBarcodeConfig { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
checksum?: MsiChecksumType; | ||
constructor(config: Partial<MSIBarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
export class Code39BarcodeConfig { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
checksum?: Code39ChecksumType; | ||
constructor(config: Partial<Code39BarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
} | ||
export class MSIBarcodeConfig { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
checksum?: MsiChecksumType; | ||
constructor(config: Partial<MSIBarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
export class Code11BarcodeConfig { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
checksum?: Code11ChecksumType; | ||
constructor(config: Partial<Code11BarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
export class DatamatrixBarcodeConfig { | ||
enabled?: boolean; | ||
dpmMode?: number; | ||
minLength?: number; | ||
maxLength?: number; | ||
constructor(config: Partial<DatamatrixBarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
export class Code39BarcodeConfig { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
checksum?: Code39ChecksumType; | ||
constructor(config: Partial<Code39BarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
} | ||
export class Code11BarcodeConfig { | ||
enabled?: boolean; | ||
minLength?: number; | ||
maxLength?: number; | ||
checksum?: Code11ChecksumType; | ||
constructor(config: Partial<Code11BarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
} | ||
export class BarcodeConfigWithDpmMode { | ||
enabled?: boolean; | ||
dpmMode?: number; | ||
minLength?: number; | ||
maxLength?: number; | ||
constructor(config: Partial<BarcodeConfigWithDpmMode>) { | ||
Object.assign(this, config); | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
} | ||
export enum IdDocumentMasterChecksumType { | ||
disabled, | ||
enabled, | ||
} | ||
export class IdDocumentBarcodeConfig { | ||
enabled?: boolean; | ||
masterChecksum?: IdDocumentMasterChecksumType; | ||
constructor(config: Partial<IdDocumentBarcodeConfig>) { | ||
Object.assign(this, config); | ||
} | ||
} | ||
export class GeneralSettings { | ||
threadsLimit?: number; | ||
decodingSpeed?: DecodingSpeed; | ||
roiX?: number; | ||
roiY?: number; | ||
roiWidth?: number; | ||
roiHeight?: number; | ||
formattingType?: FormattingType; | ||
encodingCharacterSet?: string; | ||
maximumResultsCount?: number; | ||
duplicatesDelayMs?: number; | ||
multicodeCachingDuration?: number; | ||
multicodeCachingEnabled?: boolean; | ||
upcEanDeblur?: number; | ||
enableMisshaped1D?: number; | ||
constructor(config: Partial<GeneralSettings>) { | ||
Object.assign(this, config); | ||
} | ||
setROI(x: number, y: number, width: number, height: number): void { | ||
this.roiX = x; | ||
this.roiY = y; | ||
this.roiWidth = width; | ||
this.roiHeight = height; | ||
} | ||
} | ||
export class BarkoderResult { | ||
decoderResults: DecoderResult[]; | ||
resultThumbnailsAsBase64?: string[] | null; | ||
resultImageAsBase64?: string | null; | ||
constructor(resultMap: Record<string, any>) { | ||
if (Array.isArray(resultMap['decoderResults'])) { | ||
this.decoderResults = resultMap['decoderResults'].map((result: any) => new DecoderResult(result)); | ||
} else { | ||
this.decoderResults = []; | ||
} | ||
setLengthRange(minLength: number, maxLength: number) { | ||
this.minLength = minLength; | ||
this.maxLength = maxLength; | ||
} | ||
this.resultThumbnailsAsBase64 = Array.isArray(resultMap['resultThumbnailsAsBase64']) | ||
? resultMap['resultThumbnailsAsBase64'] | ||
.map(thumbnail => this.convertToBase64(thumbnail)) | ||
.filter((thumbnail): thumbnail is string => thumbnail !== null) | ||
: null; | ||
this.resultImageAsBase64 = this.convertToBase64(resultMap['resultImageAsBase64']); | ||
} | ||
export class GeneralSettings { | ||
threadsLimit?: number; | ||
decodingSpeed?: DecodingSpeed; | ||
roiX?: number; | ||
roiY?: number; | ||
roiWidth?: number; | ||
roiHeight?: number; | ||
formattingType?: FormattingType; | ||
encodingCharacterSet?: string; | ||
maximumResultsCount?: number; | ||
duplicatesDelayMs?: number; | ||
multicodeCachingDuration?: number; | ||
multicodeCachingEnabled?: boolean; | ||
upcEanDeblur?: number; | ||
enableMisshaped1D? : number; | ||
constructor(config: Partial<GeneralSettings>) { | ||
Object.assign(this, config); | ||
} | ||
setROI(x: number, y: number, width: number, height: number): void { | ||
this.roiX = x; | ||
this.roiY = y; | ||
this.roiWidth = width; | ||
this.roiHeight = height; | ||
} | ||
} | ||
private convertToBase64(data: string | null | undefined): string | null { | ||
return data ? `data:image/jpeg;base64,${data}` : null; | ||
} | ||
} | ||
export class DecoderResult { | ||
barcodeType: number; | ||
barcodeTypeName: string; | ||
binaryDataAsBase64: string; | ||
textualData: string; | ||
characterSet?: string | null; | ||
extra?: Record<string, any> | null; | ||
mrzImagesAsBase64?: { name: string; base64: string }[]; | ||
constructor(resultMap: Record<string, any>) { | ||
this.barcodeType = resultMap['barcodeType']; | ||
this.barcodeTypeName = resultMap['barcodeTypeName']; | ||
this.binaryDataAsBase64 = resultMap['binaryDataAsBase64']; | ||
this.textualData = resultMap['textualData']; | ||
this.characterSet = resultMap['characterSet'] || null; | ||
this.extra = 'extra' in resultMap ? JSON.parse(resultMap['extra']) : null; | ||
this.mrzImagesAsBase64 = Array.isArray(resultMap['mrzImagesAsBase64']) | ||
? resultMap['mrzImagesAsBase64'].map((image: { name: string; base64: string }) => ({ | ||
name: image.name, | ||
base64: `data:image/jpeg;base64,${image.base64}`, | ||
})) | ||
: []; | ||
} | ||
} |
@@ -12,3 +12,3 @@ var exec = require("cordova/exec"); | ||
*/ | ||
exports.initialize = function(width, height, x, y, success, error) { | ||
exports.initialize = function (width, height, x, y, success, error) { | ||
exec(success, error, barkoderScanner, "initialize", [width, height, x, y]); | ||
@@ -25,3 +25,3 @@ }; | ||
*/ | ||
exports.registerWithLicenseKey = function(licenseKey, success, error) { | ||
exports.registerWithLicenseKey = function (licenseKey, success, error) { | ||
exec(success, error, barkoderScanner, "registerWithLicenseKey", [licenseKey]); | ||
@@ -38,3 +38,3 @@ }; | ||
*/ | ||
exports.setZoomFactor = function(zoomFactor, success, error) { | ||
exports.setZoomFactor = function (zoomFactor, success, error) { | ||
exec(success, error, barkoderScanner, "setZoomFactor", [zoomFactor]); | ||
@@ -49,7 +49,7 @@ }; | ||
*/ | ||
exports.setFlashEnabled = function(enabled, success, error) { | ||
exports.setFlashEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setFlashEnabled", [enabled]); | ||
}; | ||
exports.startCamera = function(success, error) { | ||
exports.startCamera = function (success, error) { | ||
exec(success, error, barkoderScanner, "startCamera", []); | ||
@@ -63,3 +63,3 @@ }; | ||
*/ | ||
exports.startScanning = function(success, error) { | ||
exports.startScanning = function (success, error) { | ||
exec(success, error, barkoderScanner, "startScanning", []); | ||
@@ -73,3 +73,3 @@ }; | ||
*/ | ||
exports.stopScanning = function(success, error) { | ||
exports.stopScanning = function (success, error) { | ||
exec(success, error, barkoderScanner, "stopScanning", []); | ||
@@ -83,3 +83,3 @@ }; | ||
*/ | ||
exports.pauseScanning = function(success, error) { | ||
exports.pauseScanning = function (success, error) { | ||
exec(success, error, barkoderScanner, "pauseScanning", []); | ||
@@ -89,2 +89,11 @@ }; | ||
/** | ||
* Scan barcodes from base64 string image | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.scanImage = function (base64, success, error) { | ||
exec(success, error, barkoderScanner, "scanImage", [base64]); | ||
}; | ||
/** | ||
* Sets the color of the lines used to indicate the location of detected barcodes on the camera feed | ||
@@ -95,3 +104,3 @@ * @param {*} hexColor - The color to set for the location lines, specified in hexadecimal format (e.g., '#FF0000' for red) | ||
*/ | ||
exports.setLocationLineColor = function(hexColor, success, error) { | ||
exports.setLocationLineColor = function (hexColor, success, error) { | ||
exec(success, error, barkoderScanner, "setLocationLineColor", [hexColor]); | ||
@@ -106,3 +115,3 @@ }; | ||
*/ | ||
exports.setLocationLineWidth = function(lineWidth, success, error) { | ||
exports.setLocationLineWidth = function (lineWidth, success, error) { | ||
exec(success, error, barkoderScanner, "setLocationLineWidth", [lineWidth]); | ||
@@ -117,3 +126,3 @@ }; | ||
*/ | ||
exports.setRoiLineColor = function(hexColor, success, error) { | ||
exports.setRoiLineColor = function (hexColor, success, error) { | ||
exec(success, error, barkoderScanner, "setRoiLineColor", [hexColor]); | ||
@@ -128,3 +137,3 @@ }; | ||
*/ | ||
exports.setRoiLineWidth = function(lineWidth, success, error) { | ||
exports.setRoiLineWidth = function (lineWidth, success, error) { | ||
exec(success, error, barkoderScanner, "setRoiLineWidth", [lineWidth]); | ||
@@ -139,3 +148,3 @@ }; | ||
*/ | ||
exports.setRoiOverlayBackgroundColor = function(hexColor, success, error) { | ||
exports.setRoiOverlayBackgroundColor = function (hexColor, success, error) { | ||
exec(success, error, barkoderScanner, "setRoiOverlayBackgroundColor", [ | ||
@@ -152,3 +161,3 @@ hexColor, | ||
*/ | ||
exports.setCloseSessionOnResultEnabled = function(enabled, success, error) { | ||
exports.setCloseSessionOnResultEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setCloseSessionOnResultEnabled", [ | ||
@@ -165,3 +174,3 @@ enabled, | ||
*/ | ||
exports.setImageResultEnabled = function(enabled, success, error) { | ||
exports.setImageResultEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setImageResultEnabled", [enabled]); | ||
@@ -176,3 +185,3 @@ }; | ||
*/ | ||
exports.setLocationInImageResultEnabled = function(enabled, success, error) { | ||
exports.setLocationInImageResultEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setLocationInImageResultEnabled", [ | ||
@@ -188,3 +197,3 @@ enabled, | ||
*/ | ||
exports.setRegionOfInterest = function( | ||
exports.setRegionOfInterest = function ( | ||
left, | ||
@@ -211,3 +220,3 @@ top, | ||
*/ | ||
exports.setThreadsLimit = function(threadsLimit, success, error) { | ||
exports.setThreadsLimit = function (threadsLimit, success, error) { | ||
exec(success, error, barkoderScanner, "setThreadsLimit", [threadsLimit]); | ||
@@ -222,3 +231,3 @@ }; | ||
*/ | ||
exports.setLocationInPreviewEnabled = function(enabled, success, error) { | ||
exports.setLocationInPreviewEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setLocationInPreviewEnabled", [ | ||
@@ -235,3 +244,3 @@ enabled, | ||
*/ | ||
exports.setPinchToZoomEnabled = function(enabled, success, error) { | ||
exports.setPinchToZoomEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setPinchToZoomEnabled", [enabled]); | ||
@@ -246,3 +255,3 @@ }; | ||
*/ | ||
exports.setRegionOfInterestVisible = function( | ||
exports.setRegionOfInterestVisible = function ( | ||
regionOfInterestVisible, | ||
@@ -263,3 +272,3 @@ success, | ||
*/ | ||
exports.setBarkoderResolution = function(resolution, success, error) { | ||
exports.setBarkoderResolution = function (resolution, success, error) { | ||
exec(success, error, barkoderScanner, "setBarkoderResolution", [resolution]); | ||
@@ -274,3 +283,3 @@ }; | ||
*/ | ||
exports.setBeepOnSuccessEnabled = function(enabled, success, error) { | ||
exports.setBeepOnSuccessEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setBeepOnSuccessEnabled", [enabled]); | ||
@@ -285,3 +294,3 @@ }; | ||
*/ | ||
exports.setVibrateOnSuccessEnabled = function(enabled, success, error) { | ||
exports.setVibrateOnSuccessEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setVibrateOnSuccessEnabled", [ | ||
@@ -292,3 +301,3 @@ enabled, | ||
exports.showLogMessages = function(showLogMessages, success, error) { | ||
exports.showLogMessages = function (showLogMessages, success, error) { | ||
exec(success, error, barkoderScanner, "showLogMessages", [showLogMessages]); | ||
@@ -303,3 +312,3 @@ }; | ||
*/ | ||
exports.setBarcodeTypeLengthRange = function(type, min, max, success, error) { | ||
exports.setBarcodeTypeLengthRange = function (type, min, max, success, error) { | ||
exec(success, error, barkoderScanner, "setBarcodeTypeLengthRange", [ | ||
@@ -318,3 +327,3 @@ type, | ||
*/ | ||
exports.setEncodingCharacterSet = function(characterSet, success, error) { | ||
exports.setEncodingCharacterSet = function (characterSet, success, error) { | ||
exec(success, error, barkoderScanner, "setEncodingCharacterSet", [ | ||
@@ -331,3 +340,3 @@ characterSet, | ||
*/ | ||
exports.setDecodingSpeed = function(decodingSpeed, success, error) { | ||
exports.setDecodingSpeed = function (decodingSpeed, success, error) { | ||
exec(success, error, barkoderScanner, "setDecodingSpeed", [decodingSpeed]); | ||
@@ -342,3 +351,3 @@ }; | ||
*/ | ||
exports.setFormattingType = function(formattingType, success, error) { | ||
exports.setFormattingType = function (formattingType, success, error) { | ||
exec(success, error, barkoderScanner, "setFormattingType", [formattingType]); | ||
@@ -353,3 +362,3 @@ }; | ||
*/ | ||
exports.setCode11ChecksumType = function(checksumType, success, error) { | ||
exports.setCode11ChecksumType = function (checksumType, success, error) { | ||
exec(success, error, barkoderScanner, "setCode11ChecksumType", [ | ||
@@ -366,3 +375,3 @@ checksumType, | ||
*/ | ||
exports.setMsiChecksumType = function(checksumType, success, error) { | ||
exports.setMsiChecksumType = function (checksumType, success, error) { | ||
exec(success, error, barkoderScanner, "setMsiChecksumType", [checksumType]); | ||
@@ -377,3 +386,3 @@ }; | ||
*/ | ||
exports.setCode39ChecksumType = function(checksumType, success, error) { | ||
exports.setCode39ChecksumType = function (checksumType, success, error) { | ||
exec(success, error, barkoderScanner, "setCode39ChecksumType", [ | ||
@@ -391,3 +400,3 @@ checksumType, | ||
*/ | ||
exports.setBarcodeTypeEnabled = function(type, enabled, success, error) { | ||
exports.setBarcodeTypeEnabled = function (type, enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setBarcodeTypeEnabled", [ | ||
@@ -405,3 +414,3 @@ type, | ||
*/ | ||
exports.setMulticodeCachingEnabled = function(enabled, success, error) { | ||
exports.setMulticodeCachingEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setMulticodeCachingEnabled", [ | ||
@@ -418,3 +427,3 @@ enabled, | ||
*/ | ||
exports.setMulticodeCachingDuration = function(duration, success, error) { | ||
exports.setMulticodeCachingDuration = function (duration, success, error) { | ||
exec(success, error, barkoderScanner, "setMulticodeCachingDuration", [ | ||
@@ -431,3 +440,3 @@ duration, | ||
*/ | ||
exports.setMaximumResultsCount = function(resultsCount, success, error) { | ||
exports.setMaximumResultsCount = function (resultsCount, success, error) { | ||
exec(success, error, barkoderScanner, "setMaximumResultsCount", [ | ||
@@ -444,3 +453,3 @@ resultsCount, | ||
*/ | ||
exports.setBarcodeThumbnailOnResultEnabled = function(enabled, success, error) { | ||
exports.setBarcodeThumbnailOnResultEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setBarcodeThumbnailOnResultEnabled", [ | ||
@@ -457,3 +466,3 @@ enabled, | ||
*/ | ||
exports.setDuplicatesDelayMs = function(delayMs, success, error) { | ||
exports.setDuplicatesDelayMs = function (delayMs, success, error) { | ||
exec(success, error, barkoderScanner, "setDuplicatesDelayMs", [delayMs]); | ||
@@ -468,3 +477,3 @@ }; | ||
*/ | ||
exports.setThresholdBetweenDuplicatesScans = function( | ||
exports.setThresholdBetweenDuplicatesScans = function ( | ||
thresholdBetweenDuplicatesScans, | ||
@@ -485,3 +494,3 @@ success, | ||
*/ | ||
exports.setUpcEanDeblurEnabled = function(enabled, success, error) { | ||
exports.setUpcEanDeblurEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setUpcEanDeblurEnabled", [enabled]); | ||
@@ -496,3 +505,3 @@ }; | ||
*/ | ||
exports.setMisshaped1DEnabled = function(enabled, success, error) { | ||
exports.setMisshaped1DEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setMisshaped1DEnabled", [enabled]); | ||
@@ -507,3 +516,3 @@ }; | ||
*/ | ||
exports.setEnableVINRestrictions = function( | ||
exports.setEnableVINRestrictions = function ( | ||
enableVINRestrictions, | ||
@@ -524,4 +533,4 @@ success, | ||
*/ | ||
exports.setDataMatrixDpmModeEnabled = function(enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setDataMatrixDpmModeEnabled", [ | ||
exports.setDatamatrixDpmModeEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setDatamatrixDpmModeEnabled", [ | ||
enabled, | ||
@@ -532,2 +541,26 @@ ]); | ||
/** | ||
* Sets whether the Direct Part Marking (DPM) mode for QR barcodes is enabled. | ||
* @param {*} enabled - Set to true to enable Data Matrix DPM mode, false to disable it | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.setQrDpmModeEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setQrDpmModeEnabled", [ | ||
enabled, | ||
]); | ||
}; | ||
/** | ||
* Sets whether the Direct Part Marking (DPM) mode for QR Micro barcodes is enabled. | ||
* @param {*} enabled - Set to true to enable Data Matrix DPM mode, false to disable it | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.setQrMicroDpmModeEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setQrMicroDpmModeEnabled", [ | ||
enabled, | ||
]); | ||
}; | ||
/** | ||
* Configures the Barkoder functionality based on the provided configuration | ||
@@ -538,6 +571,18 @@ * @param {*} barkoderConfig - The configuration object for Barkoder scanner | ||
*/ | ||
exports.configureBarkoder = function(barkoderConfig, success, error) { | ||
exports.configureBarkoder = function (barkoderConfig, success, error) { | ||
exec(success, error, barkoderScanner, "configureBarkoder", [barkoderConfig]); | ||
}; | ||
/** | ||
* Sets whether Master checksum should be requiered when scanning ID Documents. | ||
* @param {*} enabled - Set to true to enable Master checksum, false to disable it | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.setIdDocumentMasterChecksumEnabled = function (enabled, success, error) { | ||
exec(success, error, barkoderScanner, "setIdDocumentMasterChecksumEnabled", [ | ||
enabled, | ||
]); | ||
}; | ||
// - Getters | ||
@@ -550,7 +595,7 @@ | ||
*/ | ||
exports.isFlashAvailable = function(success, error) { | ||
exports.isFlashAvailable = function (success, error) { | ||
exec(success, error, barkoderScanner, "isFlashAvailable", []); | ||
}; | ||
exports.isCloseSessionOnResultEnabled = function(success, error) { | ||
exports.isCloseSessionOnResultEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isCloseSessionOnResultEnabled", []); | ||
@@ -564,7 +609,7 @@ }; | ||
*/ | ||
exports.isImageResultEnabled = function(success, error) { | ||
exports.isImageResultEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isImageResultEnabled", []); | ||
}; | ||
exports.isLocationInImageResultEnabled = function(success, error) { | ||
exports.isLocationInImageResultEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isLocationInImageResultEnabled", []); | ||
@@ -578,3 +623,3 @@ }; | ||
*/ | ||
exports.isLocationInPreviewEnabled = function(success, error) { | ||
exports.isLocationInPreviewEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isLocationInPreviewEnabled", []); | ||
@@ -588,3 +633,3 @@ }; | ||
*/ | ||
exports.isPinchToZoomEnabled = function(success, error) { | ||
exports.isPinchToZoomEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isPinchToZoomEnabled", []); | ||
@@ -598,3 +643,3 @@ }; | ||
*/ | ||
exports.isRegionOfInterestVisible = function(success, error) { | ||
exports.isRegionOfInterestVisible = function (success, error) { | ||
exec(success, error, barkoderScanner, "isRegionOfInterestVisible", []); | ||
@@ -608,3 +653,3 @@ }; | ||
*/ | ||
exports.isBeepOnSuccessEnabled = function(success, error) { | ||
exports.isBeepOnSuccessEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isBeepOnSuccessEnabled", []); | ||
@@ -618,3 +663,3 @@ }; | ||
*/ | ||
exports.isVibrateOnSuccessEnabled = function(success, error) { | ||
exports.isVibrateOnSuccessEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isVibrateOnSuccessEnabled", []); | ||
@@ -628,3 +673,3 @@ }; | ||
*/ | ||
exports.getVersion = function(success, error) { | ||
exports.getVersion = function (success, error) { | ||
exec(success, error, barkoderScanner, "getVersion", []); | ||
@@ -638,3 +683,3 @@ }; | ||
*/ | ||
exports.getLocationLineColorHex = function(success, error) { | ||
exports.getLocationLineColorHex = function (success, error) { | ||
exec(success, error, barkoderScanner, "getLocationLineColorHex", []); | ||
@@ -648,3 +693,3 @@ }; | ||
*/ | ||
exports.getRoiLineColorHex = function(success, error) { | ||
exports.getRoiLineColorHex = function (success, error) { | ||
exec(success, error, barkoderScanner, "getRoiLineColorHex", []); | ||
@@ -658,3 +703,3 @@ }; | ||
*/ | ||
exports.getRoiOverlayBackgroundColorHex = function(success, error) { | ||
exports.getRoiOverlayBackgroundColorHex = function (success, error) { | ||
exec(success, error, barkoderScanner, "getRoiOverlayBackgroundColorHex", []); | ||
@@ -668,3 +713,3 @@ }; | ||
*/ | ||
exports.getMaxZoomFactor = function(success, error) { | ||
exports.getMaxZoomFactor = function (success, error) { | ||
exec(success, error, barkoderScanner, "getMaxZoomFactor", []); | ||
@@ -678,3 +723,3 @@ }; | ||
*/ | ||
exports.getLocationLineWidth = function(success, error) { | ||
exports.getLocationLineWidth = function (success, error) { | ||
exec(success, error, barkoderScanner, "getLocationLineWidth", []); | ||
@@ -688,3 +733,3 @@ }; | ||
*/ | ||
exports.getRoiLineWidth = function(success, error) { | ||
exports.getRoiLineWidth = function (success, error) { | ||
exec(success, error, barkoderScanner, "getRoiLineWidth", []); | ||
@@ -698,3 +743,3 @@ }; | ||
*/ | ||
exports.getRegionOfInterest = function(success, error) { | ||
exports.getRegionOfInterest = function (success, error) { | ||
exec(success, error, barkoderScanner, "getRegionOfInterest", []); | ||
@@ -709,3 +754,3 @@ }; | ||
*/ | ||
exports.getBarcodeTypeLengthRange = function(type, success, error) { | ||
exports.getBarcodeTypeLengthRange = function (type, success, error) { | ||
exec(success, error, barkoderScanner, "getBarcodeTypeLengthRange", [type]); | ||
@@ -719,3 +764,3 @@ }; | ||
*/ | ||
exports.getMsiChecksumType = function(success, error) { | ||
exports.getMsiChecksumType = function (success, error) { | ||
exec(success, error, barkoderScanner, "getMsiChecksumType", []); | ||
@@ -729,3 +774,3 @@ }; | ||
*/ | ||
exports.getCode39ChecksumType = function(success, error) { | ||
exports.getCode39ChecksumType = function (success, error) { | ||
exec(success, error, barkoderScanner, "getCode39ChecksumType", []); | ||
@@ -739,3 +784,3 @@ }; | ||
*/ | ||
exports.getCode11ChecksumType = function(success, error) { | ||
exports.getCode11ChecksumType = function (success, error) { | ||
exec(success, error, barkoderScanner, "getCode11ChecksumType", []); | ||
@@ -749,3 +794,3 @@ }; | ||
*/ | ||
exports.getEncodingCharacterSet = function(success, error) { | ||
exports.getEncodingCharacterSet = function (success, error) { | ||
exec(success, error, barkoderScanner, "getEncodingCharacterSet", []); | ||
@@ -759,3 +804,3 @@ }; | ||
*/ | ||
exports.getDecodingSpeed = function(success, error) { | ||
exports.getDecodingSpeed = function (success, error) { | ||
exec(success, error, barkoderScanner, "getDecodingSpeed", []); | ||
@@ -769,3 +814,3 @@ }; | ||
*/ | ||
exports.getFormattingType = function(success, error) { | ||
exports.getFormattingType = function (success, error) { | ||
exec(success, error, barkoderScanner, "getFormattingType", []); | ||
@@ -779,3 +824,3 @@ }; | ||
*/ | ||
exports.getThreadsLimit = function(success, error) { | ||
exports.getThreadsLimit = function (success, error) { | ||
exec(success, error, barkoderScanner, "getThreadsLimit", []); | ||
@@ -789,3 +834,3 @@ }; | ||
*/ | ||
exports.getMaximumResultsCount = function(success, error) { | ||
exports.getMaximumResultsCount = function (success, error) { | ||
exec(success, error, barkoderScanner, "getMaximumResultsCount", []); | ||
@@ -799,3 +844,3 @@ }; | ||
*/ | ||
exports.getDuplicatesDelayMs = function(success, error) { | ||
exports.getDuplicatesDelayMs = function (success, error) { | ||
exec(success, error, barkoderScanner, "getDuplicatesDelayMs", []); | ||
@@ -810,3 +855,3 @@ }; | ||
*/ | ||
exports.isBarcodeTypeEnabled = function(type, success, error) { | ||
exports.isBarcodeTypeEnabled = function (type, success, error) { | ||
exec(success, error, barkoderScanner, "isBarcodeTypeEnabled", [type]); | ||
@@ -820,3 +865,3 @@ }; | ||
*/ | ||
exports.getMulticodeCachingEnabled = function(success, error) { | ||
exports.getMulticodeCachingEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "getMulticodeCachingEnabled", []); | ||
@@ -830,3 +875,3 @@ }; | ||
*/ | ||
exports.getMulticodeCachingDuration = function(success, error) { | ||
exports.getMulticodeCachingDuration = function (success, error) { | ||
exec(success, error, barkoderScanner, "getMulticodeCachingDuration", []); | ||
@@ -840,3 +885,3 @@ }; | ||
*/ | ||
exports.isUpcEanDeblurEnabled = function(success, error) { | ||
exports.isUpcEanDeblurEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isUpcEanDeblurEnabled", []); | ||
@@ -850,3 +895,3 @@ }; | ||
*/ | ||
exports.isMisshaped1DEnabled = function(success, error) { | ||
exports.isMisshaped1DEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isMisshaped1DEnabled", []); | ||
@@ -860,3 +905,3 @@ }; | ||
*/ | ||
exports.isBarcodeThumbnailOnResultEnabled = function(success, error) { | ||
exports.isBarcodeThumbnailOnResultEnabled = function (success, error) { | ||
exec( | ||
@@ -876,3 +921,3 @@ success, | ||
*/ | ||
exports.getThresholdBetweenDuplicatesScans = function(success, error) { | ||
exports.getThresholdBetweenDuplicatesScans = function (success, error) { | ||
exec( | ||
@@ -892,3 +937,3 @@ success, | ||
*/ | ||
exports.isVINRestrictionsEnabled = function(success, error) { | ||
exports.isVINRestrictionsEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isVINRestrictionsEnabled", []); | ||
@@ -902,4 +947,40 @@ }; | ||
*/ | ||
exports.getBarkoderResolution = function(success, error) { | ||
exports.getBarkoderResolution = function (success, error) { | ||
exec(success, error, barkoderScanner, "getBarkoderResolution", []); | ||
}; | ||
/** | ||
* Retrieves whether Direct Part Marking (DPM) mode for Datamatrix barcodes is enabled | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.isDatamatrixDpmModeEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isDatamatrixDpmModeEnabled", []); | ||
}; | ||
/** | ||
* Retrieves whether Direct Part Marking (DPM) mode for QR barcodes is enabled | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.isQrDpmModeEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isQrDpmModeEnabled", []); | ||
}; | ||
/** | ||
* Retrieves whether Direct Part Marking (DPM) mode for QR Micro barcodes is enabled | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.isQrMicroDpmModeEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isQrMicroDpmModeEnabled", []); | ||
}; | ||
/** | ||
* Retrieves whether Master checksum is enabled when scanning ID Documents | ||
* @param {*} success - The callback function to be invoked on successful execution | ||
* @param {*} error - The callback function to be invoked on execution error | ||
*/ | ||
exports.isIdDocumentMasterChecksumEnabled = function (success, error) { | ||
exec(success, error, barkoderScanner, "isIdDocumentMasterChecksumEnabled", []); | ||
}; |
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
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 too big to display
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 too big to display
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 too big to display
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
82517173
78
22906
156
2
90