BarcodeInfo

data class BarcodeInfo(val id: Long, val symbology: String, val data: String, val rawData: ByteArray?, var currentPosition: BarcodePosition?)

A class representing data and position of a single barcode. Its companion object also contains all the constants information for the symbology reference

Since

1.0.0

Parameters

id

a unique id used to identify a barcode for a tracking session.

symbology

an enum or string type representing the type of the barcode data. all possible values are within BarcodeInfo.allSupportedBarcodeSymbology

data

String encoded barcode data.

rawData

a byte array containing raw barcode data.

currentPosition

a position data indicating the current relative location of the barcode from top left corner a frame.

Constructors

Link copied to clipboard
fun BarcodeInfo(id: Long, symbology: String, data: String, rawData: ByteArray?, currentPosition: BarcodePosition?)

Types

Link copied to clipboard
object Companion

This is the constant value for developer to use when filling in the configuration for supported symbology Also, BarcodeInfo would use the following constant strings in BarcodeInfo.symbology

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
val data: String
Link copied to clipboard
val id: Long
Link copied to clipboard
val rawData: ByteArray?
Link copied to clipboard
val symbology: String