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

Logo

2023 © Caf. - All rights reserved