FaceAutoCaptureFragment

Face Auto Capture UI component.

A visual component for capturing good quality images of a human face.

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 isTorchEnabled: Boolean = false, val captureMode: CaptureMode = CaptureMode.AUTO_CAPTURE, val qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholdPresets.standard, val isPlaceholderVisible: Boolean = true, val isDetectionLayerVisible: Boolean = false, val sessionToken: String? = null)

Configuration for the Face Auto Capture UI component.

Functions

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

Called only once for the whole process, when the final face 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: FaceAutoCaptureDetection)

Called when a camera image is processed.

Link copied to clipboard

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

Link copied to clipboard
fun requestCapture(isFacePresenceRequired: Boolean = false)

Request capture event asynchronously.

Link copied to clipboard
fun start()

Start the process.

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

Stop the process asynchronously.