FaceAutoCaptureFragment

abstract class FaceAutoCaptureFragment(@LayoutRes contentLayoutId: Int = R.layout.dot_face_fragment_face_auto_capture) : BaseFaceAutoCaptureFragment

UI Face Auto Capture component.

A visual component for capturing good quality images of a human face. This component provides an UI. It includes a placeholder for the face, a detection layer that displays the tracking circle and an instruction. If you prefer to use your own custom UI, you can use BaseFaceAutoCaptureFragment instead.

Constructors

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

Types

Link copied to clipboard
data class Configuration(val base: BaseFaceAutoCaptureFragment.Configuration = BaseFaceAutoCaptureFragment.Configuration(), val placeholder: Placeholder = Placeholder.Visible(), val isDetectionLayerVisible: Boolean = false)

Configuration for the UI Face Auto Capture component.

Functions

Link copied to clipboard
open override 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

Provides the Configuration for the component.