Barcode AR Info Annotation Body Component
Defined in package com.scandit.datacapture.barcode.ar.ui
- BarcodeArInfoAnnotationBodyComponent
class BarcodeArInfoAnnotationBodyComponentAdded 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
@Nullable String getText()
voidsetText(@Nullable String value)Added in version 7.1.0
The text shown in the component.
- textSize
floatgetTextSize()voidsetTextSize(floatvalue)Added in version 7.1.0
The size of the text. Default is 14 scale-independent pixels.
- typeface
@NonNull Typeface getTypeface()
voidsetTypeface(@NonNull Typeface value)Added in version 7.1.0
The typeface of the text. Default is Typeface.DEFAULT.
- textAlignment
intgetTextAlignment()voidsetTextAlignment(intvalue)Added in version 7.1.0
The text alignment. The default value is center.
See TextView for details.
- textColor
intgetTextColor()voidsetTextColor(intvalue)Added in version 7.1.0
The color of the text. The default value is #121619.
- styledText
@Nullable CharSequence getStyledText()
voidsetStyledText(@Nullable CharSequence value)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
booleanisLeftIconTappable()voidsetLeftIconTappable(booleanvalue)Added in version 7.1.0
Whether the left icon is tappable. Default is true.
- leftIcon
@Nullable ScanditIcon getLeftIcon()
voidsetLeftIcon(@Nullable ScanditIcon value)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
@Nullable ScanditIcon getRightIcon()
voidsetRightIcon(@Nullable ScanditIcon value)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
booleanisRightIconTappable()voidsetRightIconTappable(booleanvalue)Added in version 7.1.0
Whether the right icon is tappable. Default is true.