DocumentAnalysisFragment

A prebuilt screen for starting document 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 condition for when to navigate to the document review action. Supported conditions are:

Link copied to clipboard
@Serializable
data class WorkflowSettings @JvmOverloads constructor(@DrawableRes val guideViewDrawableId: Int? = null, val guideViewAlignedScalePercentage: Float? = null, val guideViewUnalignedScalePercentage: Float? = null, val guideViewShowVignette: Boolean? = null, @DrawableRes val manualButtonDrawableId: Int? = null, val manualButtonVisible: Boolean? = 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, @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 misnapViewShouldShowGlareBox: Boolean? = null, val reviewCondition: DocumentAnalysisFragment.ReviewCondition? = null, val handleOrientation: Boolean? = null, val shouldShowDocumentLabel: Boolean? = null, @StringRes val documentLabelStringId: Int? = null, val shouldShowCancelButton: Boolean? = null, @DrawableRes val cancelButtonDrawableId: Int? = null)

Describes the available settings for this fragment.