Barcode Check Status Icon Annotation

Defined in package com.scandit.datacapture.barcode.check.ui

BarcodeCheckStatusIconAnnotationAnchor

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.

BarcodeCheckStatusIconAnnotation
class BarcodeCheckStatusIconAnnotation : BarcodeCheckAnnotation

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.

BarcodeCheckStatusIconAnnotation()
BarcodeCheckStatusIconAnnotation(@NonNull Context context,
        @NonNull Barcode barcode)

Added in version 7.1.0

Constructs a new instance of this class.

barcode
@NonNull Barcode getBarcode()

Added in version 7.1.0

The barcode instance for the annotation.

hasTip
boolean getHasTip()
void setHasTip(boolean value)

Added in version 7.1.0

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

icon
@NonNull ScanditIcon getIcon()
void setIcon(@NonNull ScanditIcon value)

Added in version 7.1.0

The icon. Default value is black ScanditIconType.EXCLAMATION_MARK with a background color of #FBC02C.

text
@Nullable String getText()
void setText(@Nullable String value)

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
int getTextColor()
void setTextColor(int value)

Added in version 7.1.0

The color of the text. Default is #121619.

backgroundColor
int getBackgroundColor()
void setBackgroundColor(int value)

Added in version 7.1.0

The icon background color. Default is #FFFFFF.

annotationTrigger
BarcodeCheckAnnotationTrigger getAnnotationTrigger()
void setAnnotationTrigger(BarcodeCheckAnnotationTrigger value)

Added in version 7.1.0

The trigger that causes the annotation to be presented. By default is BarcodeCheckAnnotationTrigger.HIGHLIGHT_TAP_AND_BARCODE_SCAN.

anchor
BarcodeCheckStatusIconAnnotationAnchor getAnchor()
void setAnchor(BarcodeCheckStatusIconAnnotationAnchor value)

Added in version 7.2.0

The annotation anchor. The default value is BarcodeCheckStatusIconAnnotationAnchor.BOTTOM.