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 in framework ScanditBarcodeCapture

BarcodeSpatialGridElement
open class BarcodeSpatialGridElement : NSObject

Added in version 7.1.0

Object representing an element in the grid presented by BarcodeSpatialGrid. Always contains a mainBarcode barcode property; may contain the optional subBarcode barcode property.

mainBarcode
open var mainBarcode: Barcode { get }

Added in version 7.1.0

The main barcode associated with the element.

subBarcode
open var subBarcode: Barcode? { get }

Added in version 7.1.0

The sub/tote barcode associated with the element, if present.

BarcodeSpatialGrid
open class BarcodeSpatialGrid : NSObject

Added in version 6.17.0

Object that is returned by BarcodeCountSession.spatialMap(). Represents the result of mapping the barcodes, and sub-barcodes if present, in a grid. Depending on the scanned barcodes the grid could be incomplete so for some coordinates the returned barcode could be null.

rows
open var rows: Int { get }

Added in version 6.17.0

Returns the number of rows in the grid.

columns
open var columns: Int { get }

Added in version 6.17.0

Returns the number of columns in the grid.

element
open func element(atRow row: UInt, column: UInt) -> BarcodeSpatialGridElement?

Added in version 7.1.0

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

row
open func row(at index: UInt) -> Array<BarcodeSpatialGridElement>

Added in version 7.1.0

Returns an array of elements corresponding to the selected row.

Missing elements in the row will be represented by NSNull.

column
open func column(at index: UInt) -> Array<BarcodeSpatialGridElement>

Added in version 7.1.0

Returns an array of elements corresponding to the selected column.

Missing elements in the column will be represented by NSNull.

coordinates
open func coordinates(for element: BarcodeSpatialGridElement) -> Array<Coordinate2D>

Added in version 7.1.0

Returns the list of coordinates for a specific element.

jsonString
open var jsonString: String { get }

Added in version 6.19.0

Returns the JSON representation of the spatial grid.