Barcode Check Popover Annotation
Defined in package com.scandit.datacapture.barcode.check.ui
- BarcodeCheckPopoverAnnotationAnchor
Added in version 7.2.0
The available anchor options for a popover 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.
- BarcodeCheckPopoverAnnotationListener
interface BarcodeCheckPopoverAnnotationListener
Added in version 7.1.0
The listener for the popover annotation.
- onPopoverButtonTapped(popover, button, buttonIndex)
void
onPopoverButtonTapped(@NonNull BarcodeCheckPopoverAnnotation popover, @NonNull BarcodeCheckPopoverAnnotationButton button,int
buttonIndex)Added in version 7.1.0
Called when a button is tapped. The buttonIndex parameter can be used to identify which button was tapped. Called only if BarcodeCheckPopoverAnnotation.isEntirePopoverTappable is false.
- onPopoverTapped(popover)
void
onPopoverTapped(@NonNull BarcodeCheckPopoverAnnotation popover)Added in version 7.1.0
Called when the popover is tapped. Called only if BarcodeCheckPopoverAnnotation.isEntirePopoverTappable is true.
- BarcodeCheckPopoverAnnotation
class BarcodeCheckPopoverAnnotation : BarcodeCheckAnnotation
Added in version 7.1.0
An annotation comprising a set of buttons, each containing an icon and text, which appears only when the user taps on the corresponding barcode highlight.
- BarcodeCheckPopoverAnnotation()
BarcodeCheckPopoverAnnotation(@NonNull Context context, @NonNull Barcode barcode, @NonNull List<@NonNull BarcodeCheckPopoverAnnotationButton> buttons)
Added in version 7.1.0
Constructs a new instance with the given buttons and barcode.
- isEntirePopoverTappable
boolean
isEntirePopoverTappable()void
setEntirePopoverTappable(boolean
value)Added in version 7.1.0
If false each individual button in the popover is tappable. If true the entire popover is tappable. Default is false.
- anchor
BarcodeCheckPopoverAnnotationAnchor getAnchor()
void
setAnchor(BarcodeCheckPopoverAnnotationAnchor value)Added in version 7.2.0
The annotation anchor. The default value is BarcodeCheckPopoverAnnotationAnchor.BOTTOM.
- listener
@Nullable BarcodeCheckPopoverAnnotationListener getListener()
void
setListener(@Nullable BarcodeCheckPopoverAnnotationListener value)Added in version 7.1.0
An object that receives notifications for UI-related events, such as tapping on a button.
- 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.
- buttons
@NonNull List<@NonNull BarcodeCheckPopoverAnnotationButton> getButtons()
Added in version 7.1.0
Returns the buttons provided in the constructor.
- BarcodeCheckPopoverAnnotationButton
class BarcodeCheckPopoverAnnotationButton
Added in version 7.1.0
- BarcodeCheckPopoverAnnotationButton()
BarcodeCheckPopoverAnnotationButton(@NonNull ScanditIcon icon, @NonNull String text)
Added in version 7.1.0
Constructs a new instance with the given icon and text.
- textColor
int
getTextColor()void
setTextColor(int
value)Added in version 7.1.0
The color of the text. Default is #3D4852.
- textSize
float
getTextSize()void
setTextSize(float
value)Added in version 7.1.0
The size of the text. Default is 10 scale-independent pixels.
- typeface
@NonNull Typeface getTypeface()
void
setTypeface(@NonNull Typeface value)Added in version 7.1.0
The typeface of the text. Default is Typeface.DEFAULT.
- icon
@NonNull ScanditIcon getIcon()
Added in version 7.1.0
The icon provided in the constructor.
- enabled
boolean
getEnabled()void
setEnabled(boolean
value)Added in version 7.1.0
Whether the button is enabled. Default is true.