Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ErrorCorrectionLevel

See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.

author

Sean Owen

Hierarchy

  • ErrorCorrectionLevel

Index

Constructors

Private constructor

Properties

Private bits

bits: number

Private stringValue

stringValue: string

Private value

Static Private FOR_BITS

FOR_BITS: Map<number, ErrorCorrectionLevel> = new Map<number, ErrorCorrectionLevel>()

Static Private FOR_VALUE

FOR_VALUE: Map<ErrorCorrectionLevelValues, ErrorCorrectionLevel> = new Map<ErrorCorrectionLevelValues, ErrorCorrectionLevel>()

Static H

H: ErrorCorrectionLevel = new ErrorCorrectionLevel(ErrorCorrectionLevelValues.H, 'H', 0x02)

H = ~30% correction

Static L

L: ErrorCorrectionLevel = new ErrorCorrectionLevel(ErrorCorrectionLevelValues.L, 'L', 0x01)

L = ~7% correction

Static M

M: ErrorCorrectionLevel = new ErrorCorrectionLevel(ErrorCorrectionLevelValues.M, 'M', 0x00)

M = ~15% correction

Static Q

Q: ErrorCorrectionLevel = new ErrorCorrectionLevel(ErrorCorrectionLevelValues.Q, 'Q', 0x03)

Q = ~25% correction

Methods

equals

  • equals(o: any): boolean

getBits

  • getBits(): number

getValue

toString

  • toString(): string

Static forBits

Static fromString

Generated using TypeDoc