Base Document Auto Capture Fragment
Base UI Document Auto Capture component.
A visual component for capturing good quality document images suitable for optical character recognition. This component primarily focuses on the camera preview functionality. It is intended to be used as a base for custom UI. If you prefer a ready-to-use UI component, use DocumentAutoCaptureFragment instead.
To implement a custom UI, you need to pass your layout resource using a constructor argument contentLayoutId and include a layout from DOT SDK. Use this snippet in your custom layout XML file:
<include layout="@layout/dot_document_fragment_base_document_auto_capture" />After including the default layout, you can add your custom UI elements (e.g. instructions, buttons, etc.) to your layout XML file.
Inheritors
Types
Configuration for the UI Document Auto Capture component.
Functions
Called only once for the whole process, when the final document image candidate has been chosen. Once this callback is called, the whole process is considered to be over.
Called when the UI state is updated. Subclasses can override this method to update custom UI elements.
Provides the Configuration for the component.
Request capture event asynchronously (regardless of whether there is a document detected or not).