FaceAnalysisFragment

A prebuilt screen for starting face analysis.

Supports customization through buildWorkflowSettings, buildFragmentArguments, nav graph arguments, and XML overrides.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Sets the level of sensitivity to lighting conditions to adapt the screen brightness and the GuideView vignette color to improve the face detection in low light environments.

Link copied to clipboard

Sets the condition for when to navigate to the face review action. Supported conditions are:

Link copied to clipboard
@Serializable
data class WorkflowSettings @JvmOverloads constructor(@DrawableRes val guideViewDrawableId: Int? = null, val guideViewScalePercentage: Float? = null, val guideViewShowVignette: Boolean? = null, @DrawableRes val manualButtonDrawableId: Int? = null, val timeoutDuration: Int? = null, @DrawableRes val torchViewOnDrawableId: Int? = null, @DrawableRes val torchViewOffDrawableId: Int? = null, val hintDuration: Int? = null, @AnimRes val hintAnimationId: Int? = null, val hintViewShouldShowBackground: Boolean? = null, val hintViewInitialHintDelay: Int? = null, val showCountdownTimer: Boolean? = null, val countdownTimerDuration: Int? = null, @ArrayRes val countdownTimerLabelsId: Int? = null, @AnimRes val countdownTimerAnimationId: Int? = null, @DrawableRes val recordingIconDrawableId: Int? = null, @AnimRes val recordingIconAnimationId: Int? = null, @DrawableRes val helpButtonDrawableId: Int? = null, @DrawableRes val successViewMessageDrawableId: Int? = null, @AnimRes val successViewMessageAnimationId: Int? = null, @DrawableRes val successViewBackgroundDrawableId: Int? = null, val successViewShouldVibrate: Boolean? = null, val successViewSoundUri: String? = null, val misnapViewShouldShowBoundingBox: Boolean? = null, val reviewCondition: FaceAnalysisFragment.ReviewCondition? = null, val handleOrientation: Boolean? = null, val changeGuideViewStateOnFeedback: Boolean? = null, val lowLightSensitivity: FaceAnalysisFragment.LowLightSensitivity? = null, val shouldShowCancelButton: Boolean? = null, @DrawableRes val cancelButtonDrawableId: Int? = null)

Describes the available settings for this fragment.