Note

The Adaptive Recognition API is still in beta and may change in future versions of Scandit Data Capture SDK.

Label Capture Adaptive Recognition Overlay

Defined in package com.scandit.datacapture.label.ui.overlay.adaptiverecognition

LabelCaptureAdaptiveRecognitionOverlay
class LabelCaptureAdaptiveRecognitionOverlay : FrameLayout

Added in version 7.6.0

Specialized overlay that provides a guided adaptive recognition experience for Label Capture. The overlay coordinates the UI during the adaptive recognition flow and reports results through the LabelCaptureAdaptiveRecognitionListener.

newInstance(context, mode, view)
static @NonNull LabelCaptureAdaptiveRecognitionOverlay newInstance(@NonNull Context context,
        LabelCapture mode,
        @Nullable DataCaptureView view)

Added in version 7.6.0

Constructs a new overlay to visualize the adaptive recognition receipt scanning flow. When view is non-null, the overlay is automatically added to the view. Otherwise, it must be added through DataCaptureView.addOverlay().

listener
@Nullable LabelCaptureAdaptiveRecognitionListener getListener()
void setListener(@Nullable LabelCaptureAdaptiveRecognitionListener value)

Added in version 7.6.0

Sets the listener to observe adaptive recognition events from this overlay.

applySettings(settings)
void applySettings(@NonNull LabelCaptureAdaptiveRecognitionSettings settings)

Added in version 7.6.0

Apply settings that customize the adaptive recognition UI and behavior. Use this to configure properties such as the processing hint text displayed while the overlay processes captured data.

onResume()
void onResume()

Added in version 7.6.0

Notifies the overlay that the container has resumed.

This method should be called in a Fragment or Activity’s onResume method to allow starting the scanning process or to restore a state previously paused by onPause().

onPause()
void onPause()

Added in version 7.6.0

Notifies the overlay that the container has paused.

This method should be called in a Fragment or Activity’s onPause method to pause the scanning flow. The scan state will then be restored when onResume() in called.