Barcode Check Popover Annotation

Defined in framework ScanditBarcodeCapture

SDCBarcodeCheckPopoverAnnotationAnchor

Added in version 7.2.0

The available anchor options for a popover annotation.

SDCBarcodeCheckPopoverAnnotationAnchorLeft

Added in version 7.2.0

The annotation is anchored at its left edge.

SDCBarcodeCheckPopoverAnnotationAnchorRight

Added in version 7.2.0

The annotation is anchored at its right edge.

SDCBarcodeCheckPopoverAnnotationAnchorBottom

Added in version 7.2.0

The annotation is anchored at its bottom-center point.

SDCBarcodeCheckPopoverAnnotationAnchorTop

Added in version 7.2.0

The annotation is anchored at its top-center point.

SDCBarcodeCheckPopoverAnnotationDelegate
@protocol SDCBarcodeCheckPopoverAnnotationDelegate <NSObject>

Added in version 7.1.0

The delegate for the popover annotation.

- barcodeCheckPopoverAnnotation:didTapButton:atIndex:
- (void)barcodeCheckPopoverAnnotation:(SDCBarcodeCheckPopoverAnnotation *)annotation
                         didTapButton:(SDCBarcodeCheckPopoverAnnotationButton *)button
                              atIndex:(NSInteger)index

Added in version 7.1.0

Called when a button is tapped. The buttonIndex parameter can be used to identify which button was tapped. Called only if SDCBarcodeCheckPopoverAnnotation.isEntirePopoverTappable is NO.

- barcodeCheckPopoverAnnotationDidTap:
- (void)barcodeCheckPopoverAnnotationDidTap:(SDCBarcodeCheckPopoverAnnotation *)annotation

Added in version 7.1.0

Called when the popover is tapped. Called only if SDCBarcodeCheckPopoverAnnotation.isEntirePopoverTappable is YES.

SDCBarcodeCheckPopoverAnnotation
@interface SDCBarcodeCheckPopoverAnnotation : UIView <SDCBarcodeCheckAnnotation>

Added in version 7.1.0

An annotation comprising a set of buttons, each containing an icon and text, which appears only when the user taps on the corresponding barcode highlight.

Popover annotation
- initWithBarcode:buttons:
- (instancetype)initWithBarcode:(SDCBarcode *)barcode
                        buttons:(NSArray<SDCBarcodeCheckPopoverAnnotationButton *> *)buttons

Added in version 7.1.0

Constructs a new instance with the given buttons and barcode.

isEntirePopoverTappable
@property (nonatomic, assign) BOOL isEntirePopoverTappable

Added in version 7.1.0

If NO each individual button in the popover is tappable. If YES the entire popover is tappable. Default is NO.

anchor
@property (nonatomic, assign) SDCBarcodeCheckPopoverAnnotationAnchor anchor

Added in version 7.2.0

The annotation anchor. The default value is SDCBarcodeCheckPopoverAnnotationAnchorBottom.

delegate
@property (nonatomic, weak) id<SDCBarcodeCheckPopoverAnnotationDelegate> delegate

Added in version 7.1.0

An object that receives notifications for UI-related events, such as tapping on a button.

buttons
@property (nonatomic, strong, readonly) NSArray<SDCBarcodeCheckPopoverAnnotationButton *> *buttons

Added in version 7.1.0

Returns the buttons provided in the constructor.

barcode
@property (nonatomic, strong, readonly) SDCBarcode *barcode

Added in version 7.1.0

Returns the barcode provided in the constructor.

SDCBarcodeCheckPopoverAnnotationButton
@interface SDCBarcodeCheckPopoverAnnotationButton : UIView

Added in version 7.1.0

- initWithIcon:text:
- (instancetype)initWithIcon:(SDCScanditIcon *)icon
                        text:(NSString *)text

Added in version 7.1.0

Constructs a new instance with the given icon and text.

font
@property (nonatomic, strong) UIFont *font

Added in version 7.1.0

The font used for the text. Default is semi-bold system font of size 10.

textColor
@property (nonatomic, strong) UIColor *textColor

Added in version 7.1.0

The color of the text. Default is #3D4852.

enabled
@property (nonatomic, assign, getter=isEnabled) BOOL enabled

Added in version 7.1.0

Whether the button is enabled. Default is YES.