Barcode Ar Status Icon Annotation

Defined in framework ScanditBarcodeCapture

SDCBarcodeArStatusIconAnnotationAnchor

Added in version 7.2.0

The available anchor options for a status icon annotation.

SDCBarcodeArStatusIconAnnotationAnchorLeft

Added in version 7.2.0

The annotation is anchored at its left edge.

SDCBarcodeArStatusIconAnnotationAnchorRight

Added in version 7.2.0

The annotation is anchored at its right edge.

SDCBarcodeArStatusIconAnnotationAnchorBottom

Added in version 7.2.0

The annotation is anchored at its bottom-center point.

SDCBarcodeArStatusIconAnnotationAnchorTop

Added in version 7.2.0

The annotation is anchored at its top-center point.

SDCBarcodeArStatusIconAnnotation
@interface SDCBarcodeArStatusIconAnnotation : UIView <SDCBarcodeArAnnotation>

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.

../../../_images/status_icon.png ../../../_images/status_icon_expanded.png

Collapsed state.

Expanded state.

- initWithBarcode:
- (instancetype)initWithBarcode:(SDCBarcode *)barcode

Added in version 7.1.0

Constructs a new instance of this class.

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

Added in version 7.1.0

The barcode instance for the annotation.

hasTip
@property (nonatomic, assign, readwrite) BOOL hasTip

Added in version 7.1.0

Whether the status icon has a tip. Default is YES.

icon
@property (nonatomic, strong, readwrite) SDCScanditIcon *icon

Added in version 7.1.0

The icon. Default value is black SDCScanditIconTypeExclamationMark, over a SDCScanditIconShapeCircle background shape with a background color of #FBC02C.

text
@property (nonatomic, strong, nullable, readwrite) NSString *text

Added in version 7.1.0

The text shown in the expanded state. Maximum allowed length is 20 characters, including whitespaces. If nil, the status icon doesn’t expand on tap. Default is nil.

textColor
@property (nonatomic, strong, readwrite) UIColor *textColor

Added in version 7.1.0

The color of the text. Default is #121619.

backgroundColor
@property (nonatomic, strong) UIColor *backgroundColor

Added in version 7.1.0

The icon background color. Default is #FFFFFF.

anchor
@property (nonatomic, assign, readwrite) SDCBarcodeArStatusIconAnnotationAnchor anchor

Added in version 7.2.0

The annotation anchor. The default value is SDCBarcodeArStatusIconAnnotationAnchorBottom.