R
fn

encodeText

tested

Returns a QR Code representing the given Unicode text string at the given error correction level. As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible QR Code version is automatically chosen for the output.

Signature

ts
export function encodeText(text: string, ecl: QrCodeEcc): QrCode{ ... }

Parameters

ParameterTypeDescription
textstring
eclQrCodeEcc

Returns

QrCode