qrscanner.* — QR Scanner


Type Library


Overview

The QR Scanner plugin lets you scan QR Codes and other barcodes in your Corona app.

Supported platforms: iOS 8+, Android 4.0.3+.

The latest version requires Corona 2017.3068 or later.

Screenshots

Android
Android

iOS
iOS

Custom Overlay
Custom Overlay

Syntax

local qrscanner = require('plugin.qrscanner')  

Functions

qrscanner.enableDebug()

qrscanner.show()

Events

show

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

	settings = {
		plugins = {
			['plugin.qrscanner'] = {
				publisherId = 'com.spiralcodestudio'
			}
		}
	}

Also for iOS 10 support you need to add a description for the camera permission. Add to your build.settings inside iphone->plist section.

NSPhotoLibraryUsageDescription = "Not used in this app",  
NSCameraUsageDescription = "Used to scan QR codes and barcodes"  

Sample Project

A sample project can be found here.

https://github.com/Lerg/plugins-sample-qrscanner