Skip to content

utils/qrcode

Documentation

Overview

Classes

QRCode

generateQRCode()

Generates a QR code image byte array from the given text. The returned byte array represents the image data (e.g., PNG or JPEG format, depending on the native implementation's default output).

ts
static generateQRCode(text: string): void;
ParameterTypeDescription
textstringThe string content to be encoded in the QR code.

Returns

  • Type: void
  • Description: A JavaScript byte array (any[]) containing the raw QR code image data.