Barcode Check Icon Annotation
Defined in library scandit_datacapture_barcode_check_ui
- BarcodeCheckInfoAnnotationWidthPreset
Added in version 7.1.0
The available width options for an info annotation.
- small
Added in version 7.1.0
Small width. Recommended for annotations that contain only text or icon, and do not include a header or footer.
- medium
Added in version 7.1.0
Medium width.
- large
Added in version 7.1.0
Large width.
- BarcodeCheckInfoAnnotationAnchor
Added in version 7.1.0
The available anchor options for an info annotation.
- left
Added in version 7.1.0
The annotation is anchored at its left edge.
- right
Added in version 7.1.0
The annotation is anchored at its right edge.
- bottom
Added in version 7.1.0
The annotation is anchored at its bottom-center point.
- top
Added in version 7.1.0
The annotation is anchored at its top-center point.
- BarcodeCheckInfoAnnotationListener
abstract class BarcodeCheckInfoAnnotationListener
Added in version 7.1.0
The listener for the info annotation.
- didTapInfoAnnotationHeader(annotation)
void
didTapInfoAnnotationHeader(BarcodeCheckInfoAnnotation annotation)Added in version 7.1.0
Called when the annotation header is tapped. Called only if BarcodeCheckInfoAnnotation.isEntireAnnotationTappable is false.
void
didTapInfoAnnotationFooter(BarcodeCheckInfoAnnotation annotation)Added in version 7.1.0
Called when the annotation footer is tapped. Called only if BarcodeCheckInfoAnnotation.isEntireAnnotationTappable is false.
- didTapInfoAnnotationLeftIcon(annotation, componentIndex)
void
didTapInfoAnnotationLeftIcon(BarcodeCheckInfoAnnotation annotation, int componentIndex)Added in version 7.1.0
Called when the left icon of an annotation component is tapped. componentIndex specifies the index of the component containing the tapped icon within the BarcodeCheckInfoAnnotation.body array. Called only if BarcodeCheckInfoAnnotation.isEntireAnnotationTappable is false.
- didTapInfoAnnotationRightIcon(annotation, componentIndex)
void
didTapInfoAnnotationRightIcon(BarcodeCheckInfoAnnotation annotation, int componentIndex)Added in version 7.1.0
Called when the right icon of an annotation component is tapped. componentIndex specifies the index of the component containing the tapped icon within the BarcodeCheckInfoAnnotation.body array. Called only if BarcodeCheckInfoAnnotation.isEntireAnnotationTappable is false.
- didTapInfoAnnotation(annotation)
void
didTapInfoAnnotation(BarcodeCheckInfoAnnotation annotation)Added in version 7.1.0
Called when the annotation is tapped. Called only if BarcodeCheckInfoAnnotation.isEntireAnnotationTappable is true.
- BarcodeCheckInfoAnnotation
class BarcodeCheckInfoAnnotation : BarcodeCheckAnnotation
Added in version 7.1.0
Info annotations are tooltips that display text and icons, structured as an array of body components. Each body component contains text and may include optional tappable icons on both the left and right sides.
In addition to the body components, info annotations can include an optional header, and footer. By default, they appear automatically when the corresponding barcode is scanned. Info annotations are available in three predefined widths, with their height dynamically adjusting to fit the content. Here are some examples:
Body component only.
Body component and header.
Body component with attributed text and tappable icon.
- BarcodeCheckInfoAnnotation(barcode)
BarcodeCheckInfoAnnotation(Barcode barcode)
Added in version 7.1.0
Constructs a new instance with the given barcode.
- hasTip
bool hasTip
Added in version 7.1.0
Whether the annotation has a tip. The default value is true.
- isEntireAnnotationTappable
bool isEntireAnnotationTappable
Added in version 7.1.0
If false, each individual element within the annotation (header, footer, icons in body components) is tappable. If true, the entire annotation is tappable.
- anchor
BarcodeCheckInfoAnnotationAnchor anchor
Added in version 7.1.0
The annotation anchor. The default value is BarcodeCheckInfoAnnotationAnchor.bottom.
- width
BarcodeCheckInfoAnnotationWidthPreset width
Added in version 7.1.0
The annotation width. The default value is BarcodeCheckInfoAnnotationWidthPreset.small.
- body
List<BarcodeCheckInfoAnnotationBodyComponent> body
Added in version 7.1.0
The annotation body, represented as an array of body components. The default value is [].
- header
BarcodeCheckInfoAnnotationHeader? header
Added in version 7.1.0
The annotation header. The default value is null.
BarcodeCheckInfoAnnotationFooter? footer
Added in version 7.1.0
The annotation footer. The default value is null.
- backgroundColor
Color backgroundColor
Added in version 7.1.0
The background color. The default value is #CCFFFFFF.
- listener
BarcodeCheckInfoAnnotationListener? listener
Added in version 7.1.0
An object that receives notifications for UI-related events.