MultiRangeLivenessFragment

abstract class MultiRangeLivenessFragment(@LayoutRes contentLayoutId: Int = R.layout.dot_face_fragment_multirange_liveness) : FaceCameraPreviewFragment

Multi-Range Liveness UI component.

A visual component for capturing images suitable for Multi-Range Liveness evaluation.

Constructors

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

Types

Link copied to clipboard
data class Configuration(val cameraFacing: CameraFacing = CameraFacing.FRONT, val cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, val isTorchEnabled: Boolean = false, val isVideoCaptureEnabled: Boolean = false, val isDetectionLayerVisible: Boolean = false, val sessionToken: String? = null, val isCameraPreviewVisible: Boolean = true, val challengeSequence: List<MultiRangeLivenessChallengeItem>)

Configuration for the Multi-Range Liveness UI component.

Functions

Link copied to clipboard
abstract fun onFinished(result: MultiRangeLivenessResult)

Called only once for the whole process. Once this callback is called, the whole process is considered to be over.

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

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 Multi-Range Liveness UI component.

Link copied to clipboard
override fun provideFaceCameraImageProcessor(): FaceCameraImageProcessor
Link copied to clipboard
fun start()

Start the process.

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

Stop the process asynchronously.