Table of contents
Swift
Objective-C

QRCodeDetails

This interface extends BarcodeDetails interface and adds properties specific to QR barcodes such as rows, columns, errorCorrectionLevel, etc.

interface QRCodeDetails extends BarcodeDetails {
    rows: number;
    columns: number;
    errorCorrectionLevel: number;
    version: number;
    model: number;
    mode: number;
    page: number;
    totalPage: number;
    parityData: number;
    dataMaskPattern: number;
    codewords: Array<String>;
}

rows

The row count of the QR Code, indicating how many rows of modules it contains.

rows: number;

columns

The column count of the QR Code, indicating how many columns of modules it contains.

columns: number;

errorCorrectionLevel

The error correction level of the QR Code.

errorCorrectionLevel: number;

version

The version of the QR code. QR codes come in different versions, each with varying data capacities and sizes.

version: number;

model

Number of models of the QR Code.

model: number;

mode

Identify the first data encoding mode of the QR Code.

mode: number;

page

Position of the particular symbol in the Structured Append format of the QR Code.

page: number;

totalPage

Identify the total number of symbols to be concatenated in the Structured Append format of the QR Code.

totalPage: number;

parityData

A value obtained by XORing byte by byte the ASCII/JIS values of all the original input data before division into symbol blocks. It’s used for error checking and correction.

parityData: number;

dataMaskPattern

The data mask pattern of the QR Code, 0-7 for regular QR; 0-3 for micro-QR.

dataMaskPattern: number;

codewords

The codewords array of the QR Code.

codewords: Array<String>;

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: