QrCode

object QrCode(source)

QR Code encoder (ISO/IEC 18004, Model 2, versions 1 to 40).

The text is split into numeric, alphanumeric and byte segments so that the symbol is as small as possible. Characters outside ASCII are encoded as UTF-8 bytes. For GS1 data use Gs1QrCode.

Properties

Link copied to clipboard
const val QUIET_ZONE_MODULES: Int = 4

Minimum quiet zone on every side, in modules.

Functions

Link copied to clipboard
fun encode(text: String, errorCorrection: QrErrorCorrection = QrErrorCorrection.M, version: Int? = null, mask: Int? = null): QrCodeSymbol

Encodes text in the smallest version that fits, or in exactly version when given.