menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class QRCode - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class QRCode

    The QRCode is a two-dimensional barcode. The data encoded in the barcode can be numeric, alphanumeric, or Shif JIS characters.

    Inheritance
    System.Object
    SymbologyBase
    QRCode
    Inherited Members
    SymbologyBase.Module
    SymbologyBase.ModuleProperty
    Namespace: Syncfusion.Maui.Barcode
    Assembly: Syncfusion.Maui.Barcode.dll
    Syntax
    public class QRCode : SymbologyBase
    Remarks

    It can efficiently store more information in a smaller space than 1D barcodes. Each barcode can store values up to 7089 characters. It is mostly used for URLs, business cards, contact information, etc.

    The QRCode consists of a grid of dark and light dots or blocks that form a square.

    Constructors

    QRCode()

    Declaration
    public QRCode()

    Fields

    CodeVersionProperty

    Identifies the CodeVersion bindable property.

    Declaration
    public static readonly BindableProperty CodeVersionProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for CodeVersion bindable property.

    ErrorCorrectionLevelProperty

    Identifies the ErrorCorrectionLevel bindable property.

    Declaration
    public static readonly BindableProperty ErrorCorrectionLevelProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for ErrorCorrectionLevel bindable property.

    InputModeProperty

    Identifies the InputMode bindable property.

    Declaration
    public static readonly BindableProperty InputModeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for InputMode bindable property.

    Properties

    CodeVersion

    Gets or sets a value to define the version that is used to encode the amount of data.

    Declaration
    public QRCodeVersion CodeVersion { get; set; }
    Property Value
    Type Description
    QRCodeVersion

    The default value is Auto.

    Remarks

    The QRCode uses version from 1 to 40. Version 1 measures 21 modules x 21 modules, version 2 measures 25 modules x 25 modules, and so on.

    The number of modules increases in steps of 4 modules per side up to version 40 that measures 177 modules x 177 modules.

    Examples
    <barcode:SfBarcodeGenerator Value="123456" ShowText="True">
       <barcode:SfBarcodeGenerator.Symbology>
          <barcode:QRCode CodeVersion="Version01"/>
       </barcode:SfBarcodeGenerator.Symbology>
     </barcode:SfBarcodeGenerator>
    See Also
    QRCodeVersion

    ErrorCorrectionLevel

    Gets or sets a value to define the encode recovery capacity of the barcode.

    Declaration
    public ErrorCorrectionLevel ErrorCorrectionLevel { get; set; }
    Property Value
    Type Description
    ErrorCorrectionLevel

    The default value is Auto.

    Remarks

    Auto - calculates the error correction level based on the code version and input mode.

    Below error correction capability at each of the four levels:

    Low - approximately 7% of the codewords can be restored.

    Medium - approximately 15% of the codewords can be restored.

    Quartile - approximately 25% of the codewords can be restored.

    High - approximately 30% of the codewords can be restored.

    Examples
    <barcode:SfBarcodeGenerator Value="123456" ShowText="True">
       <barcode:SfBarcodeGenerator.Symbology>
          <barcode:QRCode ErrorCorrectionLevel="Low"/>
       </barcode:SfBarcodeGenerator.Symbology>
     </barcode:SfBarcodeGenerator>
    See Also
    ErrorCorrectionLevel

    InputMode

    Gets or sets a value to define a specific set of input mode characters.

    Declaration
    public QRInputMode InputMode { get; set; }
    Property Value
    Type Description
    QRInputMode

    The default value is Auto.

    Examples
    <barcode:SfBarcodeGenerator Value="123456" ShowText="True">
       <barcode:SfBarcodeGenerator.Symbology>
          <barcode:QRCode InputMode="Numeric"/>
       </barcode:SfBarcodeGenerator.Symbology>
     </barcode:SfBarcodeGenerator>
    See Also
    QRInputMode
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved