android
Document Detector
Install and launch Document Detector for Android. Learn configuration options, UI setup, customization paths, callback events, and result handling.
Prerequisites
Installation Guide
Starting Document Detector
val config = DocumentDetectorConfiguration(
flow = listOf(
DocumentDetectorStep(Document.RG_FRONT),
DocumentDetectorStep(Document.RG_BACK)
)
)
CerttaDocumentDetector.instance.open(config) { event ->
when(event) {
is DocumentDetectorEvent.Success -> {
//handle success
}
is DocumentDetectorEvent.Error -> {
//handle error
}
}
}
var config = new DocumentDetectorConfiguration(
Arrays.asList(
new DocumentDetectorStep(Document.RG_FRONT),
new DocumentDetectorStep(Document.RG_BACK)
)
);
CerttaDocumentDetector.getInstance().open(config, event -> {
if (event instanceof DocumentDetectorEvent.Success) {
var successEvent = (DocumentDetectorEvent.Success) event;
// handle success
} else if (event instanceof DocumentDetectorEvent.Error) {
var errorEvent = (DocumentDetectorEvent.Error) event;
// handle error
}
});
DocumentDetectorConfiguration Parameters
Parameter
Default
Description
Starting Document Detector UI
DocumentDetectorUiConfiguration Parameters
Parameter
Default
Description
Deep Dive Into Customizations
UI Customizations
Supported Documents
Document
Description
Understanding Document Detector Events & Results
DocumentDetectorEvent.Success
DocumentDetectorEvent.Error
Event
Typical cause
Last updated

