Barcode Selection Listener

Defined in framework ScanditBarcodeCapture

SDCBarcodeSelectionListener
@protocol SDCBarcodeSelectionListener <NSObject>

Added in version 6.6.0

The BarcodeSelection delegate is the main way for hooking into BarcodeSelection. It provides a callback that is invoked when the state of selected barcodes changes.

- didStartObservingBarcodeSelection:
- (void)didStartObservingBarcodeSelection:(nonnull SDCBarcodeSelection *)barcodeSelection

Added in version 6.6.0

Called when the listener starts observing the BarcodeSelection instance.

- didStopObservingBarcodeSelection:
- (void)didStopObservingBarcodeSelection:(nonnull SDCBarcodeSelection *)barcodeSelection

Added in version 6.6.0

Called when the listener stops observing the BarcodeSelection instance.

- barcodeSelection:didUpdateSelection:frameData:
- (void)barcodeSelection:(nonnull SDCBarcodeSelection *)barcodeSelection
      didUpdateSelection:(nonnull SDCBarcodeSelectionSession *)session
               frameData:(nullable id<SDCFrameData>)frameData

Added in version 6.6.0

Invoked whenever a barcode is selected or a previously selected barcode is unselected.

SDCFrameData is nil if the camera is frozen and the selection is changed.

- barcodeSelection:didUpdateSession:frameData:
- (void)barcodeSelection:(nonnull SDCBarcodeSelection *)barcodeSelection
        didUpdateSession:(nonnull SDCBarcodeSelectionSession *)session
               frameData:(nullable id<SDCFrameData>)frameData

Added in version 6.6.0

Invoked after a frame has been processed by barcode selection and the session has been updated. In contrast to barcodeSelection:didUpdateSelection:frameData:, this method is invoked, regardless whether a code was selected or not.

SDCFrameData is nil if the camera is frozen and the selection is changed.

Barcode Selection Advanced Listener

Defined in framework ScanditBarcodeCapture