Barcode Count
Defined in namespace Scandit.DataCapture.Barcode.Count.Capture
- BarcodeCount
class BarcodeCount : IDataCaptureMode
Added in version 6.17.0
Barcode Count is a data capture mode that implements MatrixScan Count in use cases that include a counting workflow such as receiving, inventory count, and stock taking. MatrixScan Count is an out-of-the-box scan and count solution that enables faster and more accurate counting of multiple items at once.
Learn more on how to use Barcode Count in our Get Started guide.
This capture mode uses the barcode scanning and tracking capabilities. It cannot be used together with other capture modes that require the same capabilities, e.g. BarcodeCapture.
- Create()
static BarcodeCount Create(DataCaptureContext dataCaptureContext, BarcodeCountSettings settings)
Added in version 6.17.0
Constructs a new barcode count mode with the provided context and settings. When the context is not null, the capture mode is automatically added to the context.
- Enabled
bool
Enabled { get;set; }Added in version 6.17.0
Implemented from IDataCaptureMode. See IDataCaptureMode.Enabled.
- ApplySettingsAsync()
Task ApplySettingsAsync(BarcodeCountSettings settings)
Added in version 6.17.0
Asynchronously applies the new settings to the barcode scanner, then calls whenDone. 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()
void
AddListener(IBarcodeCountListener listener)Added in version 6.17.0
Adds the listener to observe this barcode capture instance.
If the listener is already observing the barcode count instance, calling this method has no effect.
- RemoveListener()
void
RemoveListener(IBarcodeCountListener listener)Added in version 6.17.0
Removes a previously added listener from this barcode count instance.
If the listener is not currently observing the barcode count instance, calling this method has no effect.
- Reset()
void
Reset()Added in version 6.17.0
Resets the session, effectively clearing the history of tracked and unscanned barcodes.
- StartScanningPhase()
void
StartScanningPhase()Added in version 6.17.0
Starts the capture session. If the Enabled is false, this call has no effect.
- RecommendedCameraSettings
static CameraSettings RecommendedCameraSettings { get; }
Added in version 6.17.0
Returns the recommended camera settings for use with barcode count.
- Context
DataCaptureContext Context { get; }
Added in version 6.17.0
Implemented from IDataCaptureMode. See IDataCaptureMode.Context.
- Feedback
BarcodeCountFeedback Feedback { get;set; }
Added in version 6.17.0
Instance of BarcodeCountFeedback that is used by the barcode scanner to notify users about Success and Failure events.
The default instance of the Feedback will have both sound and vibration enabled. A default beep sound will be used for the sound.
- EndScanningPhase()
void
EndScanningPhase()Added in version 6.17.0
Disables this mode and switches off the current IFrameSource.
- SetBarcodeCountCaptureList()
void
SetBarcodeCountCaptureList(BarcodeCountCaptureList list)Added in version 6.17.0
Enables “Scanning against a list” mode, which provides additional functionality when looking for a specific set of Barcodes.
- SetAdditionalBarcodes()
void
SetAdditionalBarcodes(IList<Barcode> additionalBarcodes)Added in version 6.17.0
Use this method to inject barcodes that will be used as partial scanning result. BarcodeCountView will consider these barcodes when updating the UI. Note that, if scanning against a list where multiple instances of the same barcode are expected, each entry in this list will only count as 1 towards the expected total. In order to specify that several instances of a barcode were scanned in previous sessions, this list should include one entry per each of those instances.
- ClearAdditionalBarcodes()
void
ClearAdditionalBarcodes()Added in version 6.17.0
Clears the additional barcodes.
- Scanned
event EventHandler<BarcodeCountEventArgs> Scanned
Added in version 6.17.0
Occurs once scanning phase is over.