Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Xamarin.Android and Data Capture SDK Documentation for Xamarin.iOS

ScanDelegate Interface Reference

Public Member Functions

void DidScan (BarcodePicker picker, IScanSession session)

Detailed Description

Calls the Protocol for a scan event delegate.

Class implementing the ScanDelegate protocol receive barcode/2D code scan events whenever a new code has been scanned.


Member Function Documentation

void DidScan ( BarcodePicker  picker,
IScanSession  session 

Method invoked whenever a new code is scanned.

This method is called on the BarcodePicker::scanDelegate whenever the barcode scanner has recognized new barcodes/2D codes. The newly recognized codes can be retrieved from the scan session's ScanSession.NewlyRecognizedCodes property.

pickerThe barcode picker on which codes were scanned.
sessionThe current scan session containing the state of the recognition process, e.g. the list of codes recognized in the last processed frame. The scan session can only be accessed from within this method. It is however possible to use codes returned by ScanSession.NewlyRecognizedCodes outside this method.

This method is invoked from a picker-internal dispatch queue. To perform UI work, you must dispatch to the main queue first.