Barcode Sequence
Defined in namespace Scandit.DataCapture.Barcode.Sequence.Capture
- BarcodeSequence
class BarcodeSequence : IDataCaptureMode, IDisposable
Added in version 8.6.0
Capture mode that implements BarcodeSequence.
- Create()
static BarcodeSequence Create(DataCaptureContext dataCaptureContext, BarcodeSequenceSettings settings)
Added in version 8.6.0
Constructs a new Barcode Sequence mode with the provided context and settings. When the context is not null, the capture mode is automatically added to the context.
- Enabled
boolEnabled { get;set; }Added in version 8.6.0
This flag indicates whether the BarcodeSequence mode is currently processing frames to recognise barcodes.
- Context
DataCaptureContext Context { get; }
Added in version 8.6.0
The context this mode is attached to. When the data capture mode is not attached to a context, null is returned.
- Feedback
BarcodeSequenceFeedback Feedback { get;set; }
Added in version 8.6.0
Instance of BarcodeSequenceFeedback that is used by the barcode scanner to notify users about sequence events.
The default instance of the Feedback will have both sound and vibration enabled. A default beep sound will be used for the sound.
- RecommendedCameraSettings
static CameraSettings RecommendedCameraSettings { get; }
Added in version 8.6.0
Returns the recommended camera settings for use with Barcode Sequence.
- ApplySettingsAsync()
Task ApplySettingsAsync(BarcodeSequenceSettings settings)
Added in version 8.6.0
Asynchronously applies the new settings to the barcode scanner. If the scanner is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the scanner is currently not running, the task will complete as soon as the settings have been stored and won’t wait until the next frame is going to be processed.
- AddListener()
voidAddListener(IBarcodeSequenceListener listener)Added in version 8.6.0
Adds the listener to this BarcodeSequence instance.
In case the same listener is already observing this instance, calling this method will not add the listener again.
- RemoveListener()
voidRemoveListener(IBarcodeSequenceListener listener)Added in version 8.6.0
Removes a previously added listener from this BarcodeSequence instance.
In case the listener is not currently observing this instance, calling this method has no effect.
- SessionUpdated
event EventHandler<BarcodeSequenceEventArgs> SessionUpdated
Added in version 8.6.0
Invoked on each frame. The BarcodeSequenceEventArgs.Session contains the currently tracked barcodes.
This method is invoked from a recognition internal thread. To perform UI work, you must dispatch to the main thread first. Further recognition is blocked until this event completes. It is thus recommended to do as little work as possible in this event handler.