Barcode AR Status Icon Annotation
Defined in framework ScanditBarcodeCapture
- enum BarcodeArStatusIconAnnotationAnchor
Added in version 7.2.0
The available anchor options for a status icon 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.
- BarcodeArStatusIconAnnotation
open class BarcodeArStatusIconAnnotation : UIView, BarcodeArAnnotation
Added in version 7.1.0
A tooltip annotation that toggles between collapsed and expanded states upon tap. In the collapsed state, only the icon is visible. In the expanded state, both the icon and text are displayed.
Collapsed state.
Expanded state.
- barcode
open var barcode: Barcode { get }
Added in version 7.1.0
The barcode instance for the annotation.
- hasTip
open var hasTip:
Bool{ get, set }Added in version 7.1.0
Whether the status icon has a tip. Default is true.
- icon
open var icon: ScanditIcon { get, set }
Added in version 7.1.0
The icon. Default value is black ScanditIconType.exclamationMark, over a ScanditIconShape.circle background shape with a background color of #FBC02C.
- text
open var text: String? { get, set }
Added in version 7.1.0
The text shown in the expanded state. Maximum allowed length is 20 characters, including whitespaces. If null, the status icon doesn’t expand on tap. Default is null.
- textColor
open var textColor: UIColor { get, set }
Added in version 7.1.0
The color of the text. Default is #121619.
- backgroundColor
open var backgroundColor: UIColor { get, set }
Added in version 7.1.0
The annotation background color. Default is #FFFFFF.
- 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.highlightTapAndBarcodeScan.
- anchor
open var anchor: BarcodeArStatusIconAnnotationAnchor { get, set }
Added in version 7.2.0
The annotation anchor. The default value is BarcodeArStatusIconAnnotationAnchor.bottom.