Label Capture Basic Overlay Listener
Defined in library scandit_datacapture_label_ui
- LabelCaptureBasicOverlayListener
abstract class LabelCaptureBasicOverlayListener
Added in version 7.2.0
LabelCaptureBasicOverlayListener can be implemented to customize the visual appearance of highlighted labels and their fields. When label capture identifies a new field, or when the LabelField.state property changes, brushForFieldOfLabel() is called to determine the brush of the field.
- brushForFieldOfLabel(overlay, field, label)
Future<Brush?> brushForFieldOfLabel( LabelCaptureBasicOverlay overlay, LabelField field, CapturedLabel label)
Added in version 7.2.0
Called for each field to determine its brush whenever the field’s state changes. In case the field is tracked over multiple frames and its state does not change, the same brush is used. The field brush can be changed by explicit calls to LabelCaptureBasicOverlay.setBrushForFieldOfLabel().
- brushForLabel(overlay, label)
Future<Brush?> brushForLabel(LabelCaptureBasicOverlay overlay, CapturedLabel label)
Added in version 7.2.0
Called for each label to determine its brush whenever one of the label’s fields changes it’s state/data. In case the field is tracked over multiple frames and none of the fields changes its state, the same brush is used. The label brush can be changed by explicit calls to LabelCaptureBasicOverlay.setBrushForLabel().
- didTapLabel(overlay, label)
void
didTapLabel(LabelCaptureBasicOverlay overlay, CapturedLabel label)Added in version 7.2.0
Called every time a captured label is tapped. Called from the main thread.