Label Capture Validation Flow Extended Listener
Defined in library scandit_datacapture_label_ui
- LabelCaptureValidationFlowExtendedListener
abstract class LabelCaptureValidationFlowExtendedListener : LabelCaptureValidationFlowListener
Added in version 8.2.0
Extended interface for validation flow events. Implement this interface instead of the base listener to receive manual input callbacks.
- didSubmitManualInputForField(field, oldValue, newValue)
voiddidSubmitManualInputForField(LabelField field, String? oldValue, String newValue)Added in version 8.2.0
Invoked when the user manually submits a value for a field through the validation flow UI.
- didUpdateValidationFlowResult(type, asyncId, fields, getFrameData)
Future<
void> didUpdateValidationFlowResult( LabelResultUpdateType type, int asyncId, List<LabelField> fields, Future<FrameData?> Function() getFrameData)Added in version 8.4.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.