Skip to content

QR Code

Non-Visible component
Category Requires Version
Media API 21, Android 5.0 Lollipop 2

Overview

A non-visible component that generates a QR code from text.

Events

Got Response

Triggered after GenerateQrCode finishes. On success, url is a local file:// URI pointing to the generated image. On failure, url contains the error message.

Param Type
success Boolean
url Text

Methods

Generate Qr Code

Generates a QR code locally on the device using the current Text, Size, Charset, FrontColor, BackgroundColor, Margin and Format properties. The result is delivered through the GotResponse event as a local file:// URI to the rendered image.

Properties

Background Color

Color Default: #FFFFFFFF  ➖ Read Write - Designer Blocks

Set the background color of the qr code result.

Charset

Available as Advanced Property

Text Default: UTF-8 ➖ Read Write - Designer Blocks

Set the charset of the input text.

Format

Text QrCodeFormat Default: png ➖ Read Write - Designer Blocks

Output image format used when generating the QR code image. Supported values are PNG (default), JPEG and WebP.

Option Value
Png png
Jpeg jpeg
Webp webp

Front Color

Color Default: #000000FF  ➖ Read Write - Designer Blocks

Set the color of the qr code result.

Margin

Number Default: 0 ➖ Read Write - Designer Blocks

Thickness of a margin in modules around the QR code. The margin will always have the same color as the background.

Size

Number Default: 200 ➖ Read Write - Designer Blocks

Set the size/resolution of the qr code.

Text

Text Default: Default ➖ Read Write - Designer Blocks

This is the text that is converted as qr code.