DocumentAutoCaptureFragment

abstract class DocumentAutoCaptureFragment(@LayoutRes contentLayoutId: Int = R.layout.dot_document_fragment_document_auto_capture) : BaseDocumentAutoCaptureFragment

UI Document Auto Capture component.

A visual component for capturing good quality document images suitable for optical character recognition. This component provides an UI. It includes a placeholder for the document, a detection layer that displays the tracking rectangle and an instruction. If you prefer to use your own custom UI, you can use BaseDocumentAutoCaptureFragment instead.

Constructors

Link copied to clipboard
constructor(@LayoutRes contentLayoutId: Int = R.layout.dot_document_fragment_document_auto_capture)

Types

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

Configuration for the UI Document 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