DOT Android Document 6.0.0
This guide describes how to migrate DOT Android Document version 5.x to version 6.0.0. Only the most important changes are highlighted in this guide. For more details, see the Android sample.
Migration Steps (Kotlin)
Data class DocumentAutoCaptureConfiguration
- Replace
startQualityAttributeThresholds()
withqualityAttributeThresholds()
inDocumentAutoCaptureConfiguration.Builder
.
Before
val configuration = DocumentAutoCaptureConfiguration.Builder()
.startQualityAttributeThresholds()
.minConfidence(minConfidence)
.end()
.build()
After
val configuration = DocumentAutoCaptureConfiguration.Builder()
.qualityAttributeThresholds(
QualityAttributeThresholds.Builder()
.minConfidence(minConfidence)
.build()
)
.build()