Label Capture Validation Flow Listener
Defined in namespace Scandit.DataCapture.Label.UI.Overlay.Validation
- ILabelCaptureValidationFlowListener
interface ILabelCaptureValidationFlowListenerAdded in version 8.2.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()
voidOnValidationFlowLabelCaptured(IList<LabelField> fields)Added in version 8.2.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()
voidOnManualInputSubmitted(LabelField field,stringoldValue,stringnewValue)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()
voidOnValidationFlowResultUpdate(LabelResultUpdateType type,longasyncId, IList<LabelField> fields, IFrameData 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 = LabelResultUpdateType.Sync and asyncId = -1.
For asynchronous scanning, this method is invoked twice:
First invocation: type = LabelResultUpdateType.AsyncStarted with frameData available and asyncId set to the unique identifier of the asynchronous operation
Second invocation: type = LabelResultUpdateType.AsyncFinished with frameData as null and asyncId matching the identifier from the first invocation
The asyncId parameter allows you to correlate the start and finish events of the same asynchronous operation.