Note

The Barcode Count mapping API is still in beta and may change in future versions of Scandit Data Capture SDK.

Barcode Spatial Grid

Defined under the namespace Scandit.Datacapture.Barcode

BarcodeSpatialGrid
class BarcodeSpatialGrid

Added in version 6.19.0

Object that is returned by BarcodeCountSession.getSpatialMap(). Represents the result of mapping the barcodes in a grid. Depending on the scanned barcodes the grid could be incomplete so for some coordinates the returned barcode could be null.

rows()
get rows(): number

Added in version 6.19.0

Returns the number of rows in the grid.

columns()
get columns(): number

Added in version 6.19.0

Returns the number of columns in the grid.

barcodeAt(row, column)
barcodeAt(row: number,
        column: number): Barcode | null

Added in version 6.19.0

Returns the barcode at the specified coordinates. If there is no barcode null is returned.

row(index)
row(index: number): Barcode[]

Added in version 6.19.0

Returns an array of Barcodes corresponding to the selected row.

column(index)
column(index: number): Barcode[]

Added in version 6.19.0

Returns an array of barcodes corresponding to the selected column.