Barcode Count View

Defined in framework ScanditBarcodeCapture

SDCBarcodeCountViewStyle

Added in version 6.15.0

The style of the SDCBarcodeCountView

SDCBarcodeCountViewStyleIcon

Added in version 6.15.0

Style that draws the highlights as icons and adds an animation for when a code newly appears.

SDCBarcodeCountViewStyleDot

Added in version 6.15.0

Style that draws the highlights as a dot and adds an animation for when a code newly appears.

SDCBarcodeCountView
@interface SDCBarcodeCountView : UIView

Added in version 6.15.0

SDCBarcodeCount comes with a ready-to-use UI. Add SDCBarcodeCountView to the view hierarchy. Please note that this view should be presented full screen.

- initWithFrame:context:barcodeCount:
- (instancetype)initWithFrame:(CGRect)frame
                      context:(nonnull SDCDataCaptureContext *)context
                 barcodeCount:(nonnull SDCBarcodeCount *)barcodeCount

Added in version 6.15.0

Constructs a new barcode count view.

- initWithFrame:context:barcodeCount:style:
- (instancetype)initWithFrame:(CGRect)frame
                      context:(nonnull SDCDataCaptureContext *)context
                 barcodeCount:(nonnull SDCBarcodeCount *)barcodeCount
                        style:(SDCBarcodeCountViewStyle)style

Added in version 6.15.0

Constructs a new barcode count view.

shouldShowUserGuidanceView
@property (nonatomic, assign) BOOL shouldShowUserGuidanceView

Added in version 6.15.0

When set to YES, user guidance and the loading view will be shown to the user. The user guidance prompts the user to scan, and to move closer or further away from the target barcodes in order to scan them properly.

By default this property is YES.

shouldShowListButton
@property (nonatomic, assign) BOOL shouldShowListButton

Added in version 6.15.0

When set to YES, a list button will be shown to the user in the lower left hand corner of the screen. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to SDCBarcodeCountViewUIDelegate.listButtonTappedForBarcodeCountView:.

By default this property is YES.

shouldShowExitButton
@property (nonatomic, assign) BOOL shouldShowExitButton

Added in version 6.15.0

When set to YES, an exit button will be shown in the lower right hand corner of the screen. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to SDCBarcodeCountViewUIDelegate.exitButtonTappedForBarcodeCountView:.

By default this property is YES.

shouldShowShutterButton
@property (nonatomic, assign) BOOL shouldShowShutterButton

Added in version 6.15.0

When set to YES, a shutter button will be shown to the user centered in the bottom of the screen. This button triggers the processing of the current video feed. The same functionality can be triggered by calling SDCBarcodeCount.startScanningPhase.

By default this property is YES.

shouldShowHints
@property (nonatomic, assign) BOOL shouldShowHints

Added in version 6.15.0

When set to YES, this view will show some messages about currently scanned barcodes.

By default this property is YES.

shouldShowClearHighlightsButton
@property (nonatomic, assign) BOOL shouldShowClearHighlightsButton

Added in version 6.15.0

When set to YES, a button will be shown above the default shutter button. This button clears all currently shown barcodes highlights. The same functionality can be triggered by calling clearHighlights.

By default this property is NO.

shouldShowSingleScanButton
@property (nonatomic, assign) BOOL shouldShowSingleScanButton

Added in version 6.16.0

When set to YES, a button will be shown to the user in the lower left corner of the preview. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to SDCBarcodeCountViewUIDelegate.singleScanButtonTappedForBarcodeCountView:.

By default this property is NO.

shouldShowFloatingShutterButton
@property (nonatomic, assign) BOOL shouldShowFloatingShutterButton

Added in version 6.15.0

When set to YES, a floating shutter button will be visible on screen. This button can be dragged to any position and, when tapped, will trigger the processing of the current video feed.

By default this property is NO.

shouldShowToolbar
@property (nonatomic, assign) BOOL shouldShowToolbar

Added in version 6.16.0

When set to YES, a collapsable toolbar will be visible at the top of the preview. This toolbar contains a set of convenience buttons for easy preference setting during scanning.

By default this property is YES.

- setToolbarSettings:
- (void)setToolbarSettings:(SDCBarcodeCountToolbarSettings *)settings

Added in version 6.16.0

Pass an instance of SDCBarcodeCountToolbarSettings to configure the text and accessibility options for the toolbar.

delegate
@property (nonatomic, weak, nullable) id<SDCBarcodeCountViewDelegate> delegate

Added in version 6.15.0

The delegate which is called whenever a new SDCTrackedBarcode is newly tracked or newly recognized.

Note

Using this delegate requires the MatrixScan AR add-on.

UIDelegate
@property (nonatomic, weak, nullable) id<SDCBarcodeCountViewUIDelegate> UIDelegate

Added in version 6.15.0

The delegate which is called whenever the exit or list button of the view did receive a tap.

Note

Using this delegate requires the MatrixScan AR add-on.

defaultRecognizedBrush
@property (class, nonatomic, nonnull, readonly) SDCBrush *defaultRecognizedBrush

Added in version 6.15.0

Returns the default brush to use 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. Only used when setting the view style to SDCBarcodeCountViewStyleDot.

defaultUnrecognizedBrush
@property (class, nonatomic, nonnull, readonly) SDCBrush *defaultUnrecognizedBrush

Added in version 6.15.0

Returns the default brush to use for an unrecognized barcode. Only used when setting the view style to SDCBarcodeCountViewStyleDot.

defaultNotInListBrush
@property (class, nonatomic, nonnull, readonly) SDCBrush *defaultNotInListBrush

Added in version 6.15.0

Returns the default brush to use for a recognized barcode that’s not part of the target SDCBarcodeCountCaptureList. When SDCBarcodeCountCaptureList is not set, this method will never be called. Only used when setting the view style to SDCBarcodeCountViewStyleDot.

recognizedBrush
@property (nonatomic, strong, nullable) SDCBrush *recognizedBrush

Added in version 6.15.0

The brush applied to recognized tracked barcodes if SDCBarcodeCountViewDelegate is not implemented. When setting a SDCBarcodeCountCaptureList to the mode, this brush will be used for recognized barcodes that are part of the target list. Setting this brush to nil hides all tracked barcodes.

unrecognizedBrush
@property (nonatomic, strong, nullable) SDCBrush *unrecognizedBrush

Added in version 6.15.0

The brush applied to unrecognized tracked barcodes if SDCBarcodeCountViewDelegate is not implemented. Setting this brush to nil hides all tracked barcodes.

notInListBrush
@property (nonatomic, strong, nullable) SDCBrush *notInListBrush

Added in version 6.15.0

The brush applied to recognized tracked barcodes that are not part of the target SDCBarcodeCountCaptureList, and only if SDCBarcodeCountViewDelegate is not implemented. When SDCBarcodeCountCaptureList is not set, this method will never be called. Setting this brush to nil hides all tracked barcodes.

shouldShowScanAreaGuides
@property (nonatomic, assign) BOOL shouldShowScanAreaGuides

Added in version 6.15.0

When set to YES, this view will visualize the active scan area used for BarcodeCount. 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.

style
@property (nonatomic, readonly) SDCBarcodeCountViewStyle style

Added in version 6.15.0

The view style. Defaults to SDCBarcodeCountViewStyleDot.

listButtonAccessibilityLabel
@property (nonatomic, strong, nullable) NSString *listButtonAccessibilityLabel

Added in version 6.15.0

Use this property to access or modify the accessibility label for the list button provided by the view.

exitButtonAccessibilityLabel
@property (nonatomic, strong, nullable) NSString *exitButtonAccessibilityLabel

Added in version 6.15.0

Use this property to access or modify the accessibility label for the exit button provided by the view.

shutterButtonAccessibilityLabel
@property (nonatomic, strong, nullable) NSString *shutterButtonAccessibilityLabel

Added in version 6.15.0

Use this property to access or modify the accessibility label for the shutter button provided by the view.

floatingShutterButtonAccessibilityLabel
@property (nonatomic, strong, nullable) NSString *floatingShutterButtonAccessibilityLabel

Added in version 6.15.0

Use this property to access or modify the accessibility label for the floating shutter button provided by the view.

singleScanButtonAccessibilityLabel
@property (nonatomic, strong, nullable) NSString *singleScanButtonAccessibilityLabel

Added in version 6.16.0

Use this property to access or modify the accessibility label for the single scan button provided by the view.

clearHighlightsButtonAccessibilityLabel
@property (nonatomic, strong, nullable) NSString *clearHighlightsButtonAccessibilityLabel

Added in version 6.15.0

Use this property to access or modify the accessibility label for the clear highlights button provided by the view.

listButtonAccessibilityHint
@property (nonatomic, strong, nullable) NSString *listButtonAccessibilityHint

Added in version 6.15.0

Use this property to access or modify the accessibility hint for the list button provided by the view.

exitButtonAccessibilityHint
@property (nonatomic, strong, nullable) NSString *exitButtonAccessibilityHint

Added in version 6.15.0

Use this property to access or modify the accessibility hint for the exit button provided by the view.

shutterButtonAccessibilityHint
@property (nonatomic, strong, nullable) NSString *shutterButtonAccessibilityHint

Added in version 6.15.0

Use this property to access or modify the accessibility hint for the shutter button provided by the view.

floatingShutterButtonAccessibilityHint
@property (nonatomic, strong, nullable) NSString *floatingShutterButtonAccessibilityHint

Added in version 6.15.0

Use this property to access or modify the accessibility hint for the floating shutter button provided by the view.

clearHighlightsButtonAccessibilityHint
@property (nonatomic, strong, nullable) NSString *clearHighlightsButtonAccessibilityHint

Added in version 6.15.0

Use this property to access or modify the accessibility hint for the clear highlights button provided by the view.

singleScanButtonAccessibilityHint
@property (nonatomic, strong, nullable) NSString *singleScanButtonAccessibilityHint

Added in version 6.16.0

Use this property to access or modify the accessibility hint for the single scan button provided by the view.

- setClearHighlightsButtonText:
- (void)setClearHighlightsButtonText:(nonnull NSString *)text

Added in version 6.15.0

Use this method to modify the text of the clear button label provided by the view.

- setTextForUnrecognizedBarcodesDetectedHint:
- (void)setTextForUnrecognizedBarcodesDetectedHint:(nonnull NSString *)text

Added in version 6.15.0

Sets the text of the hint displayed when one or more unrecognized barcodes are detected.

- setTextForTapShutterToScanHint:
- (void)setTextForTapShutterToScanHint:(nonnull NSString *)text

Added in version 6.15.0

Sets the text of the hint which suggests to tap the shutter button.

- setTextForScanningHint:
- (void)setTextForScanningHint:(nonnull NSString *)text

Added in version 6.15.0

Sets the text of the hint displayed while scanning is in progress.

- setTextForMoveCloserAndRescanHint:
- (void)setTextForMoveCloserAndRescanHint:(nonnull NSString *)text

Added in version 6.15.0

Sets the text of the hint displayed when camera should be moved closer to rescan.

- setTextForMoveFurtherAndRescanHint:
- (void)setTextForMoveFurtherAndRescanHint:(nonnull NSString *)text

Added in version 6.15.0

Sets the text of the hint displayed when camera should be further away to rescan.

- setExitButtonText:
- (void)setExitButtonText:(nonnull NSString *)text

Added in version 6.15.0

Use this method to modify the text of the exit button label provided by the view.

filterSettings
@property (nonatomic, strong, nullable) id<SDCBarcodeFilterHighlightSettings> filterSettings

Added in version 6.15.0

Use this property to access or modify the current view settings for barcode filtering.

- clearHighlights
- (void)clearHighlights

Added in version 6.15.0

Clear all currently shown barcodes highlights. This only affects screen rendering, and all detected barcodes will still be available in the SDCBarcodeCountSession.