MagnifEyeLivenessFragment

MagnifEye Liveness UI component.

A visual component for capturing images suitable for MagnifEye Liveness evaluation.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Configuration @JvmOverloads constructor(val cameraFacing: CameraFacing = CameraFacing.FRONT, val cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, val torchEnabled: Boolean = false, val isDetectionLayerVisible: Boolean = false, val sessionToken: String? = null)

Configuration for the MagnifEye Liveness UI component.

Functions

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

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

Subclasses should override this method to provide Configuration for the MagnifEye Liveness UI component.

Link copied to clipboard
fun start()

Start the process.

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

Stop the process asynchronously.