Note
The Adaptive Recognition API is still in beta and may change in future versions of Scandit Data Capture SDK.
Label Capture Adaptive Recognition Listener
Defined in package com.scandit.datacapture.label.ui
- LabelCaptureAdaptiveRecognitionListener
interface LabelCaptureAdaptiveRecognitionListenerAdded in version 8.6.0
Interface to receive callbacks from LabelCaptureAdaptiveRecognitionOverlay during adaptive recognition.
- onResultReceived(overlay, result)
fun onResultReceived(overlay: LabelCaptureAdaptiveRecognitionOverlay, result: AdaptiveRecognitionResult)
Added in version 8.6.0
Invoked when a document has been successfully recognized. The result contains the recognized data based on the result type.
- onFailure(overlay)
fun onFailure(overlay: LabelCaptureAdaptiveRecognitionOverlay)
Added in version 8.6.0
Invoked when a connection error occurs while trying to recognize a document.