Note

This API is still in beta and may change in future versions of Scandit Data Capture SDK.

Scanned Barcode

Defined in library scandit_datacapture_barcode

ScannedBarcode
class ScannedBarcode : ScannedComponent

Added in version 8.1.0

A scanned barcode component in the item-based scanning APIs. This class represents a detected and decoded barcode with all its associated data and metadata.

ScannedBarcode implements the ScannedComponent protocol, providing a unique identifier and location information, along with barcode-specific properties such as symbology, payload data, and decoding metadata.

definitionIdentifier
BarcodeIdentifier get definitionIdentifier

Added in version 8.1.0

The unique identifier for the definition of this barcode component.

identifier
ScannedComponentIdentifier get identifier

Added in version 8.1.0

The unique identifier for this instance of the barcode component.

location
Quadrilateral get location

Added in version 8.1.0

The location of the barcode as a quadrilateral.

symbology
Symbology get symbology

Added in version 8.1.0

The symbology of the scanned barcode.

payloadString
String? get payloadString

Added in version 8.1.0

The data of this barcode as a unicode string. May be null for barcodes containing non-printable characters, or characters that cannot be represented as unicode code points, or nul-bytes in the middle of the string

addOnPayloadString
String? get addOnPayloadString

Added in version 8.1.0

The add-on payload string if the barcode has an add-on. null if the barcode does not have an add-on.

compositePayloadString
String? get compositePayloadString

Added in version 8.1.0

The composite payload string if the barcode is part of a composite barcode. null if the barcode is not composite.

isGS1DataCarrier
bool get isGS1DataCarrier

Added in version 8.1.0

True for codes that carry GS1 data.

compositeFlag
CompositeFlag get compositeFlag

Added in version 8.1.0

Flag to hint whether the barcode is part of a composite code.

isColorInverted
bool get isColorInverted

Added in version 8.1.0

Whether the recognized code is color inverted (printed bright on dark background).

symbolCount
int get symbolCount

Added in version 8.1.0

The symbol count of this barcode.

frameId
int get frameId

Added in version 8.1.0

Id of the frame from which this barcode information was obtained.

isStructuredAppend
bool get isStructuredAppend

Added in version 8.1.0

Whether the barcode is a structured append barcode.