Note
This API is still in beta and may change in future versions of Scandit Data Capture SDK.
Scan Item Definition
Defined in package com.scandit.datacapture.usi.capture
- ScanItemDefinition
class ScanItemDefinitionAdded in version 8.0.0
A definition for a target scan item in the item-based scanning APIs that represents a collection of related scan components. A scan item definition can contain multiple barcode and text components that are logically grouped together.
- ScanItemDefinition()
ScanItemDefinition(@NonNull ScanItemIdentifier identifier, @NonNull List<@NonNull ScanComponentDefinition<@NonNull Object>> components)
Added in version 8.0.0
A constructor that requires an identifier and a list of ScannedComponent objects that make up the item.
- identifier
@NonNull ScanItemIdentifier getIdentifier()
Added in version 8.0.0
The unique identifier for this scanned item.
- onScan
@NonNull
Function1<@NonNull ScannedItem, @NonNullUnit> getOnScan()voidsetOnScan(@NonNullFunction1<@NonNull ScannedItem, @NonNullUnit> value)Added in version 8.0.0
A callback that gets called every time a new scan item is detected.
- components
@NonNull List<@NonNull ScanComponentDefinition<@NonNull Object>> getComponents()
Added in version 8.0.0
An array of all scan components that make up this item. Components can be either ScannedBarcode or ScannedText objects.