Barcode Count View Delegate

Defined in framework ScanditBarcodeCapture

Note

Using this class requires the MatrixScan AR add-on.

SDCBarcodeCountViewDelegate
@protocol SDCBarcodeCountViewDelegate <NSObject>

Added in version 6.15.0

- barcodeCountView:brushForRecognizedBarcode:
- (nullable SDCBrush *)barcodeCountView:(nonnull SDCBarcodeCountView *)view
              brushForRecognizedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.15.0

This method is called only when the view uses the SDCBarcodeCountViewStyleDot style.

Callback method that can be used to set a SDCBrush for a recognized barcode. When setting a SDCBarcodeCountCaptureList to the mode, this brush will be used for recognized barcodes that are part of the target list. It is called when a new recognized barcode appears. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the recognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView:didTapRecognizedBarcode: callback will not be performed.

- barcodeCountView:brushForUnrecognizedBarcode:
- (nullable SDCBrush *)barcodeCountView:(nonnull SDCBarcodeCountView *)view
            brushForUnrecognizedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.15.0

This method is called only when the view uses the SDCBarcodeCountViewStyleDot style.

Callback method that can be used to set a SDCBrush for an unrecognized barcode. It is called when a new unrecognized barcode appears. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the unrecognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView:didTapUnrecognizedBarcode: callback will not be performed.

- barcodeCountView:brushForRecognizedBarcodeNotInList:
- (nullable SDCBrush *)barcodeCountView:(nonnull SDCBarcodeCountView *)view
     brushForRecognizedBarcodeNotInList:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.15.0

This method is called only when the view uses the SDCBarcodeCountViewStyleDot style.

Callback method that can be used to set a SDCBrush for a recognized barcode that’s not part of the target SDCBarcodeCountCaptureList. It is called when a new recognized barcode that is not part of the target :type:barcode.count.BarcodeCountCaptureList appears. When SDCBarcodeCountCaptureList is not set, this method will never be called. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the recognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView:didTapRecognizedBarcodeNotInList: callback will not be performed.

- barcodeCountView:brushForAcceptedBarcode:
- (nullable SDCBrush *)barcodeCountView:(nonnull SDCBarcodeCountView *)view
                brushForAcceptedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.28.0

This method is called only when the view uses the SDCBarcodeCountViewStyleDot style.

Callback method that can be used to set a SDCBrush for an accepted barcode. It is called when a barcode is accepted. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the accepted barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView:didTapAcceptedBarcode: callback will not be performed.

- barcodeCountView:brushForRejectedBarcode:
- (nullable SDCBrush *)barcodeCountView:(nonnull SDCBarcodeCountView *)view
                brushForRejectedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.28.0

This method is called only when the view uses the SDCBarcodeCountViewStyleDot style.

Callback method that can be used to set a SDCBrush for a rejected barcode. It is called when a barcode is rejected. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the accepted barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeCountView:didTapRejectedBarcode: callback will not be performed.

- barcodeCountView:didTapRecognizedBarcode:
- (void)barcodeCountView:(nonnull SDCBarcodeCountView *)view
 didTapRecognizedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.15.0

Callback method that can be used to define an action that should be performed once a recognized barcode is tapped. When setting a SDCBarcodeCountCaptureList to the mode, this method will be called only when tapping recognized barcodes that are part of the target list. Called from the main thread.

- barcodeCountView:didTapUnrecognizedBarcode:
- (void)barcodeCountView:(nonnull SDCBarcodeCountView *)view
didTapUnrecognizedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.15.0

Callback method that can be used to define an action that should be performed once an unrecognized barcode is tapped. Called from the main thread.

- barcodeCountView:didTapFilteredBarcode:
- (void)barcodeCountView:(nonnull SDCBarcodeCountView *)view
   didTapFilteredBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.15.0

Callback method that can be used to define an action that should be performed once a filtered barcode is tapped. Called from the main thread.

- barcodeCountView:didTapRecognizedBarcodeNotInList:
- (void)barcodeCountView:(nonnull SDCBarcodeCountView *)view
didTapRecognizedBarcodeNotInList:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.15.0

Callback method that can be used to define an action that should be performed once a recognized barcode that’s not part of the target SDCBarcodeCountCaptureList is tapped. When SDCBarcodeCountCaptureList is not set, this method will never be called. Called from the main thread.

- barcodeCountView:didTapAcceptedBarcode:
- (void)barcodeCountView:(nonnull SDCBarcodeCountView *)view
   didTapAcceptedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.28.0

Callback method that can be used to define an action that should be performed once an accepted barcode is tapped. Called from the main thread.

- barcodeCountView:didTapRejectedBarcode:
- (void)barcodeCountView:(nonnull SDCBarcodeCountView *)view
   didTapRejectedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.28.0

Callback method that can be used to define an action that should be performed once a rejected barcode is tapped. Called from the main thread.