BaseFingersAutoCaptureFragment

abstract class BaseFingersAutoCaptureFragment(@LayoutRes contentLayoutId: Int = R.layout.dot_fingers_fragment_base_fingers_auto_capture) : CameraPreviewFragment

Base UI Fingers Auto Capture component.

A visual component for capturing good quality fingers images. This component primarily focuses on the camera preview functionality. It is intended to be used as a base for custom UI. If you prefer a ready-to-use UI component, use FingersAutoCaptureFragment instead.

To implement a custom UI, you need to pass your layout resource using a constructor argument contentLayoutId and include a layout from IDV SDK. Use this snippet in your custom layout XML file:

<include layout="@layout/dot_fingers_fragment_base_fingers_auto_capture" />

After including the default layout, you can add your custom UI elements (e.g. instructions, buttons, etc.) to your layout XML file.

Inheritors

Constructors

Link copied to clipboard
constructor(@LayoutRes contentLayoutId: Int = R.layout.dot_fingers_fragment_base_fingers_auto_capture)

Types

Link copied to clipboard
data class Configuration(val common: CommonConfiguration = CommonConfiguration(), val camera: CameraConfiguration = CameraConfiguration( facing = CameraFacing.BACK, isTorchEnabled = true, ), val autoCapture: AutoCaptureConfiguration = AutoCaptureConfiguration( minValidSamplesInRowToStartCandidateSelection = FingersAutoCaptureController.Configuration.DEFAULT_MIN_VALID_SAMPLES_IN_ROW_TO_START_CANDIDATE_SELECTION, candidateSelectionDurationMillis = FingersAutoCaptureController.Configuration.DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS, ), val qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholds.Presets.standard)

Configuration for the UI Fingers Auto Capture component.

Functions

Link copied to clipboard

Called only once for the whole process, when the final image candidates have been chosen. Once this callback is called, the whole process is considered to be over.

Link copied to clipboard
open fun onUiStateUpdated(uiState: UiState)

Called when the UI state is updated. Subclasses can override this method to update custom UI elements.

Link copied to clipboard
Link copied to clipboard

Request capture event asynchronously (regardless of whether there are fingers detected or not).

Link copied to clipboard
fun start()

Start the process.

Link copied to clipboard
fun stop()

Stop the process.