Skip to content

mightymop/cordova-plugin-qrscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android:

1. Add plugin

cordova plugin add https://github.com/mightymop/cordova-plugin-qrscan.git

2. For Typescript add following code to main ts file:

/// <reference types="cordova-plugin-qrscan" />

3. Usage:

window.qrscan.scan(params,succescallback,errorcallback);

params= { timeout : 10000, //millis
		  beep : true,  //beep when qr was found
		  image: true, //save image and give file path back
		  prompt: 'QR-Code scannen' //prompt title in activity
		}

Example result:
result = {
			"SCAN_RESULT":"DATA IN QR CODE", 
			"SCAN_RESULT_FORMAT":"QR_CODE",
			"SCAN_RESULT_ERROR_CORRECTION_LEVEL":"M",
			"SCAN_RESULT_IMAGE_PATH":"/data/user/0/de.mopsdom.test/cache/barcodeimage8337015256730443545.jpg"
		 }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published