BarcodeData

data class BarcodeData(val data: String, val dataBytes: ByteArray, val quantity: Int, val symbologyId: Int, val symbology: String, val timeOfScan: String, val deviceId: String)

This class holds detailed information about a scanned barcode, including:

  • The processed barcode data (data), which may have undergone transformations based on scanner settings (e.g., preamble, prefix, suffix, postamble).

  • The raw byte representation (dataBytes) of the processed barcode data.

  • The quantity of the scanned item (quantity), which can be negative to indicate removal.

  • Information about the barcode symbology (symbology and symbologyId).

  • The time of the scan (timeOfScan).

  • The ID of the scanning device (deviceId).

Constructors

Link copied to clipboard
constructor(data: String, dataBytes: ByteArray, quantity: Int, symbologyId: Int, symbology: String, timeOfScan: String, deviceId: String)

Properties

Link copied to clipboard

The processed barcode data retrieved from the scan.

Link copied to clipboard

The byte representation of the processed barcode data retrieved from the scan.

Link copied to clipboard

The device ID of the scanner that scanned the barcode.

Link copied to clipboard

The quantity of the scanned item.

Link copied to clipboard

The name of the barcode symbology used for the scan.

Link copied to clipboard

The ID of the barcode symbology used for the scan.

Link copied to clipboard

The time the barcode was scanned.