Setting up the SDK
First things first, instantiate an object of type DocumentDetector
. This object will contain all your business rules for the SDK:
private fun buildDocumentDetector(): DocumentDetector? =
DocumentDetector.Builder("mobileToken")
.setDocumentCaptureFlow(
arrayOf(
DocumentDetectorStep(Document.CNH_FRONT),
DocumentDetectorStep(Document.CNH_BACK),
)
)
.setPersonId("personId")
.build()
Last updated