Barcode Batch Basic Overlay
Defined in framework ScanditBarcodeCapture
- SDCBarcodeBatchBasicOverlayStyle
Added in version 7.0.0
The style of the SDCBarcodeBatchBasicOverlay
- SDCBarcodeBatchBasicOverlayStyleFrame
Added in version 7.0.0
Style that draws the highlights as a rectangular frame and adds an animation for when a code newly appears.
- SDCBarcodeBatchBasicOverlayStyleDot
Added in version 7.0.0
Style that draws the highlights as a dot and adds an animation for when a code newly appears.
- SDCBarcodeBatchBasicOverlay
@interface SDCBarcodeBatchBasicOverlay : NSObject <SDCDataCaptureOverlay>
Added in version 7.0.0
An overlay for SDCDataCaptureView that shows a simple augmentation over each tracked barcode.
To display the augmentations, this overlay must be attached to a SDCDataCaptureView. This may be done either by creating it with overlayWithBarcodeBatch:forDataCaptureView: with a non-null view parameter or by passing this overlay to SDCDataCaptureView.addOverlay:.
A user of this class may configure the appearance of the augmentations by implementing SDCBarcodeBatchBasicOverlayDelegate or by calling setBrush:forTrackedBarcode:.
For additional information about using this overlay, refer to MatrixScan Get Started guide.
- + overlayWithBarcodeBatch:forDataCaptureView:
+ (
instancetype
)overlayWithBarcodeBatch:(nonnull SDCBarcodeBatch *)barcodeBatch forDataCaptureView:(nullable SDCDataCaptureView *)viewAdded in version 7.0.0
Constructs a new Barcode Batch basic overlay for the Barcode Batch instance. The overlay is automatically added to the view.
- + overlayWithBarcodeBatch:forDataCaptureView:withStyle:
+ (
instancetype
)overlayWithBarcodeBatch:(nonnull SDCBarcodeBatch *)barcodeBatch forDataCaptureView:(nullable SDCDataCaptureView *)view withStyle:(SDCBarcodeBatchBasicOverlayStyle)styleAdded in version 7.0.0
Constructs a new Barcode Batch basic overlay for the Barcode Batch instance with the specified style. The overlay is automatically added to the view.
- + overlayWithBarcodeBatch:
+ (
instancetype
)overlayWithBarcodeBatch:(nonnull SDCBarcodeBatch *)barcodeBatchAdded in version 7.0.0
Constructs a new Barcode Batch basic overlay for the Barcode Batch instance. For the overlay to be displayed on screen, it must be added to a SDCDataCaptureView.
- + overlayWithBarcodeBatch:withStyle:
+ (
instancetype
)overlayWithBarcodeBatch:(nonnull SDCBarcodeBatch *)barcodeBatch withStyle:(SDCBarcodeBatchBasicOverlayStyle)styleAdded in version 7.0.0
Constructs a new Barcode Batch basic overlay for the Barcode Batch instance with the specified style. For the overlay to be displayed on screen, it must be added to a SDCDataCaptureView.
- + barcodeBatchBasicOverlayFromJSONString:mode:error:
+ (nullable
instancetype
) barcodeBatchBasicOverlayFromJSONString:(nonnull NSString *)JSONString mode:(nonnull SDCBarcodeBatch *)mode error:(NSError **)errorAdded in version 7.0.0
Constructs a new Barcode Batch basic overlay with the provided JSON serialization.
For the overlay to be displayed on screen, it must be added to a SDCDataCaptureView.
- delegate
@property (nonatomic, weak, nullable)
id
<SDCBarcodeBatchBasicOverlayDelegate> delegateAdded in version 7.0.0
The delegate which is called whenever a new TrackedBarcode is newly tracked or newly recognized.
Note
Using this delegate requires the MatrixScan AR add-on.
- + defaultBrushForStyle:
+ (nonnull SDCBrush *)defaultBrushForStyle:(SDCBarcodeBatchBasicOverlayStyle)style
Added in version 7.0.0
Returns the default brush for the given style.
- brush
@property (nonatomic, strong, nullable) SDCBrush *brush
Added in version 7.0.0
The brush applied to recognized tracked barcodes if SDCBarcodeBatchBasicOverlayDelegate is not implemented.
By default the value is set to defaultBrushForStyle:.
Setting this brush to nil hides all tracked barcodes, unless setBrush:forTrackedBarcode: is called.
- - setBrush:forTrackedBarcode:
- (
void
)setBrush:(nullable SDCBrush *)brush forTrackedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcodeAdded in version 7.0.0
The method can be called to change the visualization style of a tracked barcode. This method is thread-safe, it can be called from any thread. If the brush is nil, then no visualization will be drawn for the tracked barcode. Additionally, tapping on the barcode will have no effect - the action defined by SDCBarcodeBatchBasicOverlayDelegate.barcodeBatchBasicOverlay:didTapTrackedBarcode: callback will not be performed.
Note
Using this function requires the MatrixScan AR add-on.
- - clearTrackedBarcodeBrushes
- (
void
)clearTrackedBarcodeBrushesAdded in version 7.0.0
Clears all currently displayed visualizations for the tracked barcodes.
This only applies to the currently tracked barcodes, the visualizations for the new ones will still appear.
- shouldShowScanAreaGuides
@property (nonatomic, assign)
BOOL
shouldShowScanAreaGuidesAdded in version 7.0.0
When set to YES, this overlay will visualize the active scan area used for BarcodeBatch. This is useful to check margins defined on the SDCDataCaptureView are set correctly. This property is meant for debugging during development and is not intended for use in production.
By default this property is NO.
- - updateFromJSONString:error:
- (
BOOL
)updateFromJSONString:(nonnull NSString *)JSONString error:(NSError **)errorAdded in version 7.0.0
Updates the overlay according to a JSON serialization.
- style
@property (nonatomic, readonly) SDCBarcodeBatchBasicOverlayStyle style
Added in version 7.0.0
The overlay style. Defaults to Frame.
- NSStringFromBarcodeBatchBasicOverlayStyle(overlayStyle)
NSString *_Nonnull NSStringFromBarcodeBatchBasicOverlayStyle(SDCBarcodeBatchBasicOverlayStyle overlayStyle)
Added in version 7.0.0
Returns the string representation of the overlay style.