1.0.8 • Published 6 years ago

cordova-plugin-tabrisjs-qrgen v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Cordova - TabrisJS QR Code Generator plugin

for Android and iOS, by Joko Rivai

0. Index

  1. Description
  2. Screenshots
  3. Installation
    1. Automatically (Cordoa CLI)
    2. Manually
  4. Credits
  5. Changelog

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

ScreenShot2

Android

ScreenShot1

3. Installation

Install this plugin via Cordova CLI / NPM CLI.

cd build/cordova
cordova 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 = require('./tabrisjsqrcode.js');
QRCode.GenerateQRToCanvas(textData, canvasObject, width, height);

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