PalmAutoCaptureFragment

abstract class PalmAutoCaptureFragment(@LayoutRes contentLayoutId: Int = R.layout.dot_palm_fragment_palm_auto_capture) : CameraPreviewFragment

Palm Auto Capture UI component.

A visual component for capturing good quality palm images.

Constructors

Link copied to clipboard
fun PalmAutoCaptureFragment(@LayoutRes contentLayoutId: Int = R.layout.dot_palm_fragment_palm_auto_capture)

Types

Link copied to clipboard
data class Configuration(val cameraFacing: CameraFacing = CameraFacing.BACK, val cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, val isTorchEnabled: Boolean = false, val qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholdPresets.standard, val isDetectionLayerVisible: Boolean = false, val sessionToken: String? = null)

Configuration for the Palm Auto Capture UI component.

Functions

Link copied to clipboard
abstract fun onCaptured(result: PalmAutoCaptureResult)

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

Link copied to clipboard
abstract fun onProcessed(detection: PalmAutoCaptureDetection)

Called when a camera image is processed.

Link copied to clipboard
open override fun onViewCreated(view: View, savedInstanceState: Bundle?)
Link copied to clipboard

Subclasses should override this method to provide Configuration for the Palm Auto Capture UI component.

Link copied to clipboard

Request capture event asynchronously (regardless of whether there is a palm detected or not).

Link copied to clipboard
fun start()

Start the process.

Link copied to clipboard
fun stopAsync(onStopped: () -> Unit)

Stop the process asynchronously.