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

Barcode Class Reference


bool IsRecognized [get, set]
Symbology Symbology [get, set]
Quad Location [get, set]
byte[] RawData [get, set]
string Data [get, set]
bool IsGs1DataCarrier [get, set]
CompositeFlag CompositeFlag [get, set]
string SymbologyString [get, set]

Detailed Description

A recognized or localized barcode.

Property Documentation

bool IsRecognized

True when this code represents a recognized barcode/2d code, false if the code has been localized but not recognized.

The symbology of the barcode.

For a barcode which has been localized but not recognized, the symbology is set to Symbology.Unknown.

Quad Location

The location of the barcode/2d code in the image defined by four corners.

The quadrilateral coordinates are such that the top-left corner of the quadrilateral corresponds to the top-left corner of the barcode/2d code in the image. When the barcode is rotated by 180 degrees, e.g. read from right to left, then the top-left corner will have the right- and bottom-most coordinates of all four corners.

byte [] RawData

The data encoded in the barcode as an array of bytes.

Depending on the type of barcode/2d code, the data may be binary, or a simple ASCII/UTF-8 string. If you are only expecting utf-8 data, use Data instead.

string Data

The data encoded in the barcode as an UTF-8 string.

In case the barcode encodes non-printable data, or data that can not be represented as UTF-8, Data may be truncated, or be null. Use RawData if you are expecting non-printable or binary data in your application.

bool IsGs1DataCarrier

True if the code is a GS1 data carrier, false if not.

Codes which have only been localized but not recognized have this property set to false.

Indicates whether the barcode is part of a composite pair

For barcodes that have been localized but not recognized, CompositeFlag.Unknown is returned.

string SymbologyString

The symbology of the decoded barcode as string