Barcode Ar Popover Annotation
Defined in framework ScanditBarcodeCapture
- SDCBarcodeArPopoverAnnotationAnchor
Added in version 7.2.0
The available anchor options for a popover annotation.
- SDCBarcodeArPopoverAnnotationAnchorLeft
Added in version 7.2.0
The annotation is anchored at its left edge.
- SDCBarcodeArPopoverAnnotationAnchorRight
Added in version 7.2.0
The annotation is anchored at its right edge.
- SDCBarcodeArPopoverAnnotationAnchorBottom
Added in version 7.2.0
The annotation is anchored at its bottom-center point.
- SDCBarcodeArPopoverAnnotationAnchorTop
Added in version 7.2.0
The annotation is anchored at its top-center point.
- SDCBarcodeArPopoverAnnotationDelegate
@protocol SDCBarcodeArPopoverAnnotationDelegate <NSObject>
Added in version 7.1.0
The delegate for the popover annotation.
- - barcodeArPopoverAnnotation:didTapButton:atIndex:
- (
void
)barcodeArPopoverAnnotation:(SDCBarcodeArPopoverAnnotation *)annotation didTapButton:(SDCBarcodeArPopoverAnnotationButton *)button atIndex:(NSInteger)indexAdded 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 SDCBarcodeArPopoverAnnotation.isEntirePopoverTappable is NO.
- - barcodeArPopoverAnnotationDidTap:
- (
void
)barcodeArPopoverAnnotationDidTap:(SDCBarcodeArPopoverAnnotation *)annotationAdded in version 7.1.0
Called when the popover is tapped. Called only if SDCBarcodeArPopoverAnnotation.isEntirePopoverTappable is YES.
- SDCBarcodeArPopoverAnnotation
@interface SDCBarcodeArPopoverAnnotation : UIView <SDCBarcodeArAnnotation>
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.
- - initWithBarcode:buttons:
- (
instancetype
)initWithBarcode:(SDCBarcode *)barcode buttons:(NSArray<SDCBarcodeArPopoverAnnotationButton *> *)buttonsAdded in version 7.1.0
Constructs a new instance with the given buttons and barcode.
- isEntirePopoverTappable
@property (nonatomic, assign)
BOOL
isEntirePopoverTappableAdded 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) SDCBarcodeArPopoverAnnotationAnchor anchor
Added in version 7.2.0
The annotation anchor. The default value is SDCBarcodeArPopoverAnnotationAnchorBottom.
- delegate
@property (nonatomic, weak)
id
<SDCBarcodeArPopoverAnnotationDelegate> delegateAdded 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<SDCBarcodeArPopoverAnnotationButton *> *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.
- SDCBarcodeArPopoverAnnotationButton
@interface SDCBarcodeArPopoverAnnotationButton : UIView
Added in version 7.1.0
- - initWithIcon:text:
- (
instancetype
)initWithIcon:(SDCScanditIcon *)icon text:(NSString *)textAdded 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
enabledAdded in version 7.1.0
Whether the button is enabled. Default is YES.