Barcode AR Info Annotation Body Component

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

BarcodeArInfoAnnotationBodyComponent
class BarcodeArInfoAnnotationBodyComponent

Added in version 7.1.0

A component that forms the body of an info annotation. Each component represents a “row,” containing text with optional icons on the left and/or right sides.

BarcodeArInfoAnnotationBodyComponent()
BarcodeArInfoAnnotationBodyComponent()

Added in version 7.1.0

Constructs a new instance of the body component.

text
var text: String?

Added in version 7.1.0

The text shown in the component.

textSize
var textSize: Float

Added in version 7.1.0

The size of the text. Default is 14 scale-independent pixels.

typeface
var typeface: Typeface

Added in version 7.1.0

The typeface of the text. Default is Typeface.DEFAULT.

textAlignment
var textAlignment: Int

Added in version 7.1.0

The text alignment. The default value is center.

See TextView for details.

textColor
var textColor: Int

Added in version 7.1.0

The color of the text. The default value is #121619.

styledText
var styledText: CharSequence?

Added in version 7.1.0

The styled text shown in the component. When set, it overrides the values defined in the other text-related properties (text, typeface, textColor, textSize, textAlignment).

isLeftIconTappable
var isLeftIconTappable: Boolean

Added in version 7.1.0

Whether the left icon is tappable. Default is true.

leftIcon
var leftIcon: ScanditIcon?

Added in version 7.1.0

The icon displayed on the left side of the component. If null, no button is shown. The default value is null.

rightIcon
var rightIcon: ScanditIcon?

Added in version 7.1.0

The icon displayed on the right side of the component. If null, no button is shown. The default value is null.

isRightIconTappable
var isRightIconTappable: Boolean

Added in version 7.1.0

Whether the right icon is tappable. Default is true.