CapturePreset
Defined in framework ScanditBarcodeCapture
As part of setting up barcode scanning, it is required to enable all barcode symbologies that are expected to be scanned. In general it is best to enable as few symbologies as possible to get the best performance and avoid confusing the user by scanning symbologies that the app does not expect. Therefore if you know the symbologies that will be scanned, you should individually enable them in the settings of the relevant capture mode (eg. through BarcodeCaptureSettings.set() or SparkScanSettings.set()). If you are not familiar with the symbologies that are relevant for your use case, you can use capture presets that are tailored for different verticals (e.g. retail, logistics, etc.). You can enable one or more capture presets when instantiating the settings of the relevant capture mode (eg. through BarcodeCaptureSettings.init() or SparkScanSettings.init()). Which presets to enable depends on the vertical the app is meant for eg. if it is used in a retail store then use the CapturePreset.retail preset. After creating settings with a preset it is always possible to enable (or disable) symbologies individually.
Note
At the current time capture presets are only available for single scanning modes such as BarcodeCapture and SparkScan but not yet for MatrixScan.
- CapturePreset
struct CapturePreset : OptionSet, Sendable
Added in version 6.19.0
- init
init(rawValue:
UInt)Added in version 6.19.0
- transport
open static var transport: CapturePreset { get }
Added in version 6.19.0
- logistics
open static var logistics: CapturePreset { get }
Added in version 6.19.0
- retail
open static var retail: CapturePreset { get }
Added in version 6.19.0
- healthcare
open static var healthcare: CapturePreset { get }
Added in version 6.19.0
- manufacturing
open static var manufacturing: CapturePreset { get }
Added in version 6.19.0