Skip to content

Latest commit

 

History

History
258 lines (93 loc) · 2.15 KB

EndroidQrCodeProvider.md

File metadata and controls

258 lines (93 loc) · 2.15 KB

EndroidQrCodeProvider

Properties

bgcolor

public $bgcolor

color

public $color

margin

public $margin

errorcorrectionlevel

public $errorcorrectionlevel

endroid4

protected $endroid4

Methods

__construct

public __construct(mixed $bgcolor = 'ffffff', mixed $color = '000000', mixed $margin, mixed $errorcorrectionlevel = 'H'): mixed

Parameters:

Parameter Type Description
$bgcolor mixed
$color mixed
$margin mixed
$errorcorrectionlevel mixed

getMimeType

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

public getMimeType(): string

getQRCodeImage

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

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

Parameters:

Parameter Type Description
$qrtext mixed the value to encode in the QR code
$size mixed the desired size of the QR code

Return Value:

file contents of the QR code


qrCodeInstance

protected qrCodeInstance(mixed $qrtext, mixed $size): mixed

Parameters:

Parameter Type Description
$qrtext mixed
$size mixed

handleColor

private handleColor(mixed $color): mixed

Parameters:

Parameter Type Description
$color mixed

handleErrorCorrectionLevel

private handleErrorCorrectionLevel(mixed $level): mixed

Parameters:

Parameter Type Description
$level mixed