Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Result

Encapsulates the result of decoding a barcode within an image.

author

Sean Owen

Hierarchy

  • Result

Index

Constructors

constructor

  • Parameters

    • text: string
    • rawBytes: Uint8Array
    • Default value numBits: number = rawBytes == null ? 0 : 8 * rawBytes.length
    • resultPoints: ResultPoint[]
    • format: BarcodeFormat
    • Default value timestamp: number = System.currentTimeMillis()

    Returns Result

Properties

Private format

Private numBits

numBits: number

Private rawBytes

rawBytes: Uint8Array

Private resultMetadata

resultMetadata: Map<ResultMetadataType, Object>

Private resultPoints

resultPoints: ResultPoint[]

Private text

text: string

Private timestamp

timestamp: number

Methods

addResultPoints

getBarcodeFormat

getNumBits

  • getNumBits(): number
  • since

    3.3.0

    Returns number

    how many bits of {@link #getRawBytes()} are valid; typically 8 times its length

getRawBytes

  • getRawBytes(): Uint8Array
  • Returns Uint8Array

    raw bytes encoded by the barcode, if applicable, otherwise {@code null}

getResultMetadata

getResultPoints

  • Returns Array<ResultPoint>

    points related to the barcode in the image. These are typically points identifying finder patterns or the corners of the barcode. The exact meaning is specific to the type of barcode that was decoded.

getText

  • getText(): string

getTimestamp

  • getTimestamp(): number

putAllMetadata

putMetadata

toString

  • toString(): string

Generated using TypeDoc