Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Xamarin.Android and Data Capture SDK Documentation for Xamarin.iOS

Inherited by TrackedBarcode.

Public Member Functions

byte[] GetRawData ()
 

Public Attributes

readonly int Symbology
 
readonly String SymbologyName
 
readonly boolean IsGs1DataCarrier
 
readonly boolean IsRecognized
 
readonly String Data
 
Quadrilateral Location
 

Static Public Attributes

static int SymbologyUnknown
 
static int SymbologyEan13
 
static int SymbologyEan8
 
static int SymbologyUpca
 
static int SymbologyUpce
 
static int SymbologyCode128
 
static int SymbologyCode11
 
static int SymbologyCode25
 
static int SymbologyCode39
 
static int SymbologyCode93
 
static int SymbologyInterleaved2of5
 
static int SymbologyQr
 
static int SymbologyDataMatrix
 
static int SymbologyPdf417
 
static int SymbologyMsiPlessey
 
static int SymbologyGs1Databar
 
static int SymbologyGs1DatabarExpanded
 
static int SymbologyGs1DatabarLimited
 
static int SymbologyCodabar
 
static int SymbologyAztec
 
static int SymbologyMaxicode
 
static int SymbologyGS1DatabarLimited
 
static int SymbologyMicroPDF417
 
static int SymbologyRM4SCC
 
static int SymbologyKIX
 
static int SymbologyDotCode
 
static int SymbologyMicroQR
 
static int SymbologyCode32
 
static int SymbologyLAPA4SC
 
static int SymbologyTwoDigitAddOn
 
static int SymbologyFiveDigitAddOn
 
static int[] AllSymbologies
 

Detailed Description

Represents a recognized/localized barcode/2D code.

The Barcode class represents a barcode, or 2D code that has been localized or recognized by the barcode recognition engine.

Member Function Documentation

byte [] GetRawData ( )

The raw byte data contained in the barcode.

Use this method in case you are encoding binary data in barcodes\2D codes that can not be represented as UTF-8 strings.

Returns
The raw byte data.

Member Data Documentation

int SymbologyUnknown
static

Sentinel value to represent an unknown symbology.

int SymbologyEan13
static

EAN13 1D barcode symbology.

int SymbologyEan8
static

EAN8 1D barcode symbology.

int SymbologyUpca
static

UPC12/UPCA 1D barcode symbology.

int SymbologyUpce
static

UPCE 1D barcode symbology.

int SymbologyCode128
static

Code 128 1D barcode symbology, including GS1-Code128.

Only available in the Professional and Enterprise Packages.

int SymbologyCode11
static

Code 11 barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyCode25
static

Code25 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyCode39
static

Code39 barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyCode93
static

Code 93 barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyInterleaved2of5
static

Interleaved-Two-of-Five (ITF) 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyQr
static

QR Code 2D barcode symbology.

int SymbologyDataMatrix
static

Datamatrix 2D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyPdf417
static

PDF417 barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyMsiPlessey
static

MSI Plessey 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyGs1Databar
static

Databar 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyGs1DatabarExpanded
static

Databar Expanded 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyGs1DatabarLimited
static

GS1 DataBar Limited 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyCodabar
static

Codabar 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyAztec
static

Aztec 2D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyMaxicode
static

Maxicode 2D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyGS1DatabarLimited
static

GS1 DataBar Limited 1D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyMicroPDF417
static

Micro PDF417 2D barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyRM4SCC
static

Royal Mail 4 State Customer Code (RM4SCC).

Only available in the Professional and Enterprise Packages.

int SymbologyKIX
static

Royal Dutch TPG Post KIX.

Only available in the Professional and Enterprise Packages.

int SymbologyDotCode
static

DotCode 2d barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyMicroQR
static

Micro QR 2d barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyCode32
static

Italian Pharma Code (Code32) barcode symbology.

Only available in the Professional and Enterprise Packages.

int SymbologyLAPA4SC
static

Posti LAPA (Lajittelupalvelu) 4 State Code.

int SymbologyTwoDigitAddOn
static

Two-digit add-on for UPC and EAN codes.

In order to scan two-digit add-on codes, at least one of these symbologies must be activated as well: SymbologyEan13, SymbologyUpca, SymbologyUpce, or SymbologyEan8 and the maximum number of codes per frame has to be set to at least 2.

Only available in the Professional and Enterprise Packages.

int SymbologyFiveDigitAddOn
static

Five-digit add-on for UPC and EAN codes.

In order to scan five-digit add-on codes, at least one of these symbologies must be activated as well: SymbologyEan13, SymbologyUpca, SymbologyUpce, or SymbologyEan8 and the maximum number of codes per frame has to be set to at least 2.

Only available in the Professional and Enterprise Packages.

int [] AllSymbologies
static

Enumerates all symbologies.

readonly int Symbology

Returns the symbology of a recognized barcode.

Codes for which IsRecognized() returns false, this is SymbologyUnknown. For all other codes, it is the symbology of the recognized code.

readonly String SymbologyName

Convenience property to directly get the name of the symbology as a string.

The symbology name as a lower-case string, e.g. ean13, or codabar.

readonly boolean IsGs1DataCarrier

Whether the code is a GS1 data carrier.

True if the code is a GS1 data carrier, false if not. False is returned for codes that have only been localized but not recognized.

readonly boolean IsRecognized

Whether the code was completely recognized.

This property is true for barcodes that were completely recognized and false for codes that were localized but not recognized. For codes returned by ScanditBarcodePicker.Android.IScanSession.NewlyRecognizedCodes() and ScanditBarcodePicker.Android.IScanSession.AllRecognizedCodes() this method always returns true, for codes returned by IScanSession.NewlyLocalizedCodes() IsRecognized() always returns false.

readonly String Data

The data contained in the barcode/2D code, e.g.

the 13 digit number of a EAN13 code.

For some types of barcodes/2D codes (for example DATAMATRIX, AZTEC, PDF417), the data string may contain non-printable characters and nul-bytes in the middle of the string. Use GetRawData() if your application scans these types of codes and you are expecting binary/non-printable data.

Quadrilateral Location

The location of the code in the image.

The location as a a polygon with 4 corners. The corners are in the coordinate system of the raw preview image. In order to be displayed they must be transformed to the coordinate system of the view. The meaning of the values of topLeft, topRight etc is such that the topLeft point corresponds to the top-left corner of the barcode regardless of how it is oriented in the image.

See also
ScanditBarcodePicker.Android.BarcodePicker.ConvertPointToPickerCoordinates(Point)