models/QRCode.js
/*
    generate QR-Code from content in QRCode object with given size
    returns image as binary data
    */
generate QR-Code from content in QRCode object with given size
returns image as binary data
generate QR - Code from content in QRCode object with given size returns image as binary data
static generateQRCode(content, height, width)
    {
        var ZXing = require('nativescript-zxing');
        var zx = new ZXing();
        var img = zx.createBarcode({encode: content, height: height, width: width, format: ZXing.QR_CODE});
        return img;
    }
static generateQRCode ( content , height , width ) { var ZXing = require ( 'nativescript-zxing' ) ; var zx = new ZXing ( ) ; var img = zx . createBarcode ( { encode : content , height : height , width : width , format : ZXing . QR_CODE } ) ; return img ; }
generate QR-Code from content in QRCode object with given size
returns image as binary data
generate QR - Code from content in QRCode object with given size returns image as binary data