Documentation

EndroidQrCodeProvider
in package
implements IQRCodeProvider

Interfaces, Classes, Traits and Enums

IQRCodeProvider

Table of Contents

$bgcolor  : mixed
$color  : mixed
$errorcorrectionlevel  : mixed
$margin  : mixed
$endroid4  : mixed
__construct()  : mixed
getMimeType()  : string
Returns the appropriate mime type for the QR code that will be generated
getQRCodeImage()  : string
Generate and return the QR code to embed in a web page
qrCodeInstance()  : mixed
handleColor()  : mixed
handleErrorCorrectionLevel()  : mixed

Properties

Methods

__construct()

public __construct([mixed $bgcolor = 'ffffff' ][, mixed $color = '000000' ], mixed $margin[, mixed $errorcorrectionlevel = 'H' ]) : mixed
Parameters
$bgcolor : mixed = 'ffffff'
$color : mixed = '000000'
$margin : mixed
$errorcorrectionlevel : mixed = 'H'
Return values
mixed

getMimeType()

Returns the appropriate mime type for the QR code that will be generated

public getMimeType() : string
Return values
string

getQRCodeImage()

Generate and return the QR code to embed in a web page

public getQRCodeImage(mixed $qrtext, mixed $size) : string
Parameters
$qrtext : mixed

the value to encode in the QR code

$size : mixed

the desired size of the QR code

Return values
string

file contents of the QR code

qrCodeInstance()

protected qrCodeInstance(mixed $qrtext, mixed $size) : mixed
Parameters
$qrtext : mixed
$size : mixed
Return values
mixed

handleColor()

private handleColor(mixed $color) : mixed
Parameters
$color : mixed
Return values
mixed

handleErrorCorrectionLevel()

private handleErrorCorrectionLevel(mixed $level) : mixed
Parameters
$level : mixed
Return values
mixed

Search results