Cordova - TabrisJS QR Code Generator plugin
for Android and iOS, by Joko Rivai
0. Index
1. Description
This plugin allows you to generate QR Code within TabrisJS apps using plain javascript. Only for TabrisJS apps. Supported on Android and iOS (as platforms supported by TabrisJS).
This plugin is an adaptation of Kazuhiko Arase Javascript QR Code Generator Library, initially released under MIT License.
Currently TabrisJS does not have any QR Code generator library, so this plugin may help you create QR Code TabrisJS within your TabrisJS applications.
- This plugins is pure JavaScript. No Java code used.
- QR Code generated to TabrisJS Canvas, or as in-memory image you can draw later to TabrisJS Canvas.
- Compatible with Cordova CLI.
2. Screenshots
iOS
Android
3. Installation
Install this plugin via Cordova CLI / NPM CLI.
cd build/cordovacordova plugin add cordova-plugin-tabrisjs-qrgen
To Use:
const QRGen = window.tabrisJsPlugins.qrCode;
QRGen.GenerateQRToCanvas(textData, canvasObject, width, height);
Manually
Grab a copy of tabrisjsqrcode.js
, from extracted-zip\www\
and put it to your project source's www
folder and reference it:
var QRCode = ;QRCode;
4. CREDITS
This plugin is based on TabrisJS. The QR Code Javascript Generator code was entirely created by Kazuhiko Arase. TabrisJS adaptation was done by me.
5. CHANGELOG
2018-04-16:
- Initial Commit