Label Capture Validation Flow Listener
Defined in package com.scandit.datacapture.label.ui.overlay.validation
- LabelCaptureValidationFlowListener
interface LabelCaptureValidationFlowListenerAdded in version 7.3.0
Interface to be implemented by listeners that want to observe a LabelCaptureValidationFlowOverlay and get informed when a new label have been completely captured and validated by the end user.
- onValidationFlowLabelCaptured(fields)
voidonValidationFlowLabelCaptured(@NonNull List<@NonNull LabelField> fields)Added in version 7.3.0
Invoked when the validation flow has finished and the end user has validated a label capture. The method receives a list of all the captured fields and their values. Before this method is called, the LabelCapture mode will be automatically disabled and the camera will be paused. To continue scanning, the mode should be enabled again and the camera should be turned on.
- onManualInputSubmitted(field, oldValue, newValue)
voidonManualInputSubmitted(@NonNull LabelField field, @Nullable String oldValue, @NonNull String newValue)Added in version 8.2.0
Invoked when the user manually submits a value for a field through the validation flow UI. This callback is triggered after the user submits a field value using the keyboard, regardless of whether the input passes validation. This allows you to track which fields require manual intervention and log user corrections for analytics.
- onValidationFlowResultUpdate(type, fields, frameData)
voidonValidationFlowResultUpdate(@NonNull LabelResultUpdateType type, @NonNull List<@NonNull LabelField> fields, @Nullable FrameData frameData)Added in version 8.2.0
Invoked when the validation flow results are updated. This callback provides information about label field updates.
For synchronous scanning, this method is invoked once with type = Sync.
For asynchronous scanning, this method is invoked twice:
First invocation: type = AsyncStarted with frameData available
Second invocation: type = AsyncFinished with frameData as null