Barcode AR Popover Annotation
Defined in framework ScanditBarcodeCapture
- enum BarcodeArPopoverAnnotationAnchor
Added in version 7.2.0
The available anchor options for a popover annotation.
- left
Added in version 7.2.0
The annotation is anchored at its left edge.
- right
Added in version 7.2.0
The annotation is anchored at its right edge.
- bottom
Added in version 7.2.0
The annotation is anchored at its bottom-center point.
- top
Added in version 7.2.0
The annotation is anchored at its top-center point.
- BarcodeArPopoverAnnotationDelegate
protocol BarcodeArPopoverAnnotationDelegate : NSObjectProtocol
Added in version 7.1.0
The listener for the popover annotation.
- barcodeArPopoverAnnotation
optional func barcodeArPopoverAnnotation(_ annotation: BarcodeArPopoverAnnotation, didTap button: BarcodeArPopoverAnnotationButton, at index:
Int
) ->Void
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 BarcodeArPopoverAnnotation.isEntirePopoverTappable is false.
- barcodeArPopoverAnnotationDidTap
optional func barcodeArPopoverAnnotationDidTap(_ annotation: BarcodeArPopoverAnnotation) ->
Void
Added in version 7.1.0
Called when the popover is tapped. Called only if BarcodeArPopoverAnnotation.isEntirePopoverTappable is true.
- BarcodeArPopoverAnnotation
open class BarcodeArPopoverAnnotation : UIView, BarcodeArAnnotation
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.
- init
init(barcode: Barcode, buttons: Array<BarcodeArPopoverAnnotationButton>)
Added in version 7.1.0
Constructs a new instance with the given buttons and barcode.
- isEntirePopoverTappable
open var isEntirePopoverTappable:
Bool
{ get, set }Added in version 7.1.0
If false each individual button in the popover is tappable. If true the entire popover is tappable. Default is false.
- anchor
open var anchor: BarcodeArPopoverAnnotationAnchor { get, set }
Added in version 7.2.0
The annotation anchor. The default value is BarcodeArPopoverAnnotationAnchor.bottom.
- delegate
open weak var delegate: BarcodeArPopoverAnnotationDelegate? { get, set }
Added in version 7.1.0
An object that receives notifications for UI-related events, such as tapping on a button.
- annotationTrigger
open var annotationTrigger: BarcodeArAnnotationTrigger { get, set }
Added in version 7.1.0
The trigger that causes the annotation to be presented. By default is BarcodeArAnnotationTrigger.highlightTap.
- buttons
open var buttons: Array<BarcodeArPopoverAnnotationButton> { get }
Added in version 7.1.0
Returns the buttons provided in the constructor.
- BarcodeArPopoverAnnotationButton
open class BarcodeArPopoverAnnotationButton : UIView
Added in version 7.1.0
- init
init(icon: ScanditIcon, text: String)
Added in version 7.1.0
Constructs a new instance with the given icon and text.
- font
open var font: UIFont { get, set }
Added in version 7.1.0
The font used for the text. Default is semi-bold system font of size 10.
- textColor
open var textColor: UIColor { get, set }
Added in version 7.1.0
The color of the text. Default is #3D4852.
- isEnabled
open var isEnabled:
Bool
{ get, set }Added in version 7.1.0
Whether the button is enabled. Default is true.