Barcode Tracking Basic Overlay Delegate
Defined in framework ScanditBarcodeCapture
Note
Using this class requires the MatrixScan AR add-on.
- SDCBarcodeTrackingBasicOverlayDelegate
@protocol SDCBarcodeTrackingBasicOverlayDelegate <NSObject>
Added in version 6.0.0
- - barcodeTrackingBasicOverlay:brushForTrackedBarcode:
- (nullable SDCBrush *)barcodeTrackingBasicOverlay:(nonnull SDCBarcodeTrackingBasicOverlay *)overlay brushForTrackedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode
Added in version 6.0.0
Callback method that can be used to set a SDCBrush for a tracked barcode. It is called when a new tracked barcode appears. Called from the rendering thread. If the callback returns nil, then no visualization will be drawn for the tracked barcode. Additionally, tapping on the barcode will have no effect - the action defined by barcodeTrackingBasicOverlay:didTapTrackedBarcode: callback will not be performed.
- - barcodeTrackingBasicOverlay:didTapTrackedBarcode:
- (
void
)barcodeTrackingBasicOverlay:(nonnull SDCBarcodeTrackingBasicOverlay *)overlay didTapTrackedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcodeAdded in version 6.0.0
Callback method that can be used to define an action that should be performed once a tracked barcode is tapped. Called from the main thread.
If you are adding a UIGestureRecognizer to the data capture view, ensure that the cancelsTouchesInView property is set to NO as otherwise tap gestures will be cancelled instead of successfully completing.