Options
All
  • Public
  • Public/Protected
  • All
Menu

A result of a scanning operation on an image.

Hierarchy

  • ScanResult

Index

Properties

Readonly barcodes

barcodes: Barcode[]

The list of barcodes found in the image (can be empty).

Readonly imageData

imageData: Uint8Array

The image data given as a byte array, formatted accordingly to the set settings (imageSettings).

Readonly imageSettings

imageSettings: ImageSettings

The configuration object defining the properties of the processed image (imageData).

Methods

rejectCode

  • rejectCode(barcode: Barcode): void
  • Prevent playing a sound, vibrating or flashing the GUI for a particular code. If all codes in the result are rejected (or no barcode is present), sound, vibration and GUI flashing will be suppressed.

    Rejected codes will still be part of the ScanResult.barcodes property like all other codes.

    Parameters

    • barcode: Barcode

      The barcode to be rejected.

    Returns void

Generated using TypeDoc