<SBSScanDelegate> Protocol Reference

Instance Methods

(void) - barcodePicker:didScan:
 

Detailed Description

Defines the Protocol for a scan event delegate.

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

Since
4.7.0

Method Documentation

- (void) barcodePicker: (nonnull SBSBarcodePicker *)  picker
didScan: (nonnull SBSScanSession *)  session 

Method invoked whenever a new code is scanned.

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

Parameters
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 SBSScanSession::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.


The documentation for this protocol was generated from the following file: