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

SDCBarcodeSpatialGrid
@interface SDCBarcodeSpatialGrid : NSObject

Added in version 6.17.0

Object that is returned by SDCBarcodeCountSession.spatialMap. 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 nil.

rows
@property (nonatomic, assign, readonly) NSInteger rows

Added in version 6.17.0

Returns the number of rows in the grid.

columns
@property (nonatomic, assign, readonly) NSInteger columns

Added in version 6.17.0

Returns the number of columns in the grid.

- barcodeAtRow:column:
- (nullable SDCBarcode *)barcodeAtRow:(NSUInteger)row
                               column:(NSUInteger)column

Added in version 6.17.0

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

- rowAtIndex:
- (NSArray<SDCBarcode *> *)rowAtIndex:(NSUInteger)index

Added in version 6.17.0

Returns an array of Barcodes corresponding to the selected row.

Missing barcodes in the row will be represented by NSNull.

- columnAtIndex:
- (NSArray<SDCBarcode *> *)columnAtIndex:(NSUInteger)index

Added in version 6.17.0

Returns an array of barcodes corresponding to the selected column.

Missing barcodes in the column will be represented by NSNull.

- coordinatesForBarcode:
- (NSArray<SDCCoordinate2D *> *)coordinatesForBarcode:(SDCBarcode *)barcode

Added in version 6.17.0

Returns the list of coordinates for a specific barcode.

JSONString
@property (nonatomic, nonnull, readonly) NSString *JSONString

Added in version 6.19.0

Returns the JSON representation of the spatial grid.