Label Capture Settings
Defined under the namespace Scandit.Datacapture.Label
- LabelCaptureSettings
class LabelCaptureSettingsAdded in version 8.0.0
Configures label capture parameters and defines the structure of labels to be captured. This settings object is central to the Smart Label Capture workflow, specifying which label definitions to use, recognition parameters, and capture behavior.
Key configuration aspects:
Label definitions - Defines field types (barcodes, dates, text) and their validation rules
Recognition parameters - Controls scanning behavior and accuracy
Location selection - Specifies scanning areas and constraints
Symbology settings - Configures which barcode types are enabled
The settings follow a fluent builder pattern for convenient configuration and support multiple label definitions to handle different types of labels in the same scanning session. For the settings to take effect, they must be applied to a label capture instance using the appropriate apply settings method.
- settingsFromLabelDefinitions(definitions, properties)
static settingsFromLabelDefinitions(definitions: LabelDefinition[], properties: object<string, string> | null): LabelCaptureSettings
Added in version 8.0.0
Load the settings from an array of LabelDefinition with optional hidden properties
- setProperty(name, value)
setProperty(name: string, value:
any):voidAdded in version 8.0.0
Sets a property to the provided value. Use this method to set properties that are not yet part of a stable API. Properties set through this method may change in a future release.
- getProperty(name)
getProperty(name: string):
anyAdded in version 8.0.0
Retrieves the value of a previously set property. In case the property does not exist, null is returned. Use this method to get properties that are not yet part of a stable API. These properties may change in a future release.
- settingsForSymbology(symbology)
settingsForSymbology(symbology: Symbology): SymbologySettings
Added in version 8.0.0
Get SymbologySettings specific for the given Symbology.