Barcode AR Status Icon Annotation

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

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
class BarcodeArStatusIconAnnotation : 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.

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

Collapsed state.

Expanded state.

BarcodeArStatusIconAnnotation()
BarcodeArStatusIconAnnotation(context: Context,
        barcode: Barcode)

Added in version 7.1.0

Constructs a new instance of this class.

update(barcodeLocation, highlightViewLocation, view)
fun update(barcodeLocation: Quadrilateral,
        highlightViewLocation: Quadrilateral?,
        view: View)

Added in version 7.3.0

Called to update the view with barcode location and highlight location. Called from the main thread. This method should not be called directly, it will be invoked automatically when needed.

createView()
fun createView(): View

Added in version 7.3.0

Called once to get the view that will be updated with barcode location in update(). Called from the main thread.

barcode
val barcode: Barcode

Added in version 7.1.0

The barcode instance for the annotation.

hasTip
var hasTip: Boolean

Added in version 7.1.0

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

icon
var icon: ScanditIcon

Added in version 7.1.0

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

text
var text: String?

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
var textColor: Int

Added in version 7.1.0

The color of the text. Default is #121619.

backgroundColor
var backgroundColor: Int

Added in version 7.1.0

The annotation background color. Default is #FFFFFF.

annotationTrigger
var annotationTrigger: BarcodeArAnnotationTrigger

Added in version 7.1.0

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

anchor
var anchor: BarcodeArStatusIconAnnotationAnchor

Added in version 7.2.0

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