Examples

Sample - https://github.com/elkyc/TryElkyc

val steps = documentCaptureStep {
            docType = DocType.ANY
            title = getString(R.string.elkyc_document_intro_woldwide_title)
            instruction = getString(R.string.elkyc_document_intro_woldwide_description)
            withRfid = rfidStep {
                title = getString(R.string.elkyc_rfid_scan_tite)
                instruction = getString(R.string.elkyc_rfid_scan_description)
                btnProceed = getString(R.string.elkyc_button_next)
                btnCancel = getString(R.string.elkyc_rfid_btn_skip_title)
                btnRetry = getString(R.string.elkyc_rfid_btn_retry_title)
                waitingTitle = getString(R.string.elkyc_rfid_scan_waiting_title)
                waitingText = getString(R.string.elkyc_rfid_scan_description)
                successTitle = getString(R.string.elkyc_rfid_scan_success_title)
                successText = getString(R.string.elkyc_rfid_scan_status_success)
                successImage = R.drawable.img_matching_success
                failTitle = getString(R.string.elkyc_rfid_nfc_error)
                failText = getString(R.string.elkyc_rfid_scan_error_instruction)
                failImage = R.drawable.img_rfid_error
            }
            useGallery = true
            btnGallery = getString(R.string.elkyc_document_intro_gallery_btn_title)
            btnCapture = getString(R.string.elkyc_document_intro_main_btn_title)
            image = R.drawable.img_doc_intro
            nextStep = documentCaptureStep {
                docType = DocType.UTILITY_BILL
                title = getString(R.string.elkyc_document_intro_utility_bill_title)
                instruction = getString(R.string.elkyc_document_intro_utility_bill_description)
                useGallery = true
                btnGallery = getString(R.string.elkyc_document_intro_gallery_btn_title)
                btnCapture = getString(R.string.elkyc_document_intro_main_btn_title)
                image = R.drawable.img_worldwide_ub_intro
                mask = R.drawable.img_worldwide_ub_mask
                nextStep = welcomeStep {
                    title = getString(R.string.elkyc_intro_liveness_title)
                    text = getString(R.string.elkyc_intro_liveness_description)
                    btnProceed = getString(R.string.elkyc_button_next)
                    image = R.drawable.img_matching_intro
                    nextStep = matchingStep {
                        titleSuccess = getString(R.string.elkyc_liveness_confirm_success_title)
                        imageSuccess = R.drawable.img_matching_success
                        btnProceed = getString(R.string.elkyc_button_next)
                        titleFail = getString(R.string.elkyc_liveness_confirm_fail_title)
                        textFail = getString(R.string.elkyc_liveness_confirm_fail_description)
                        imageFail = R.drawable.img_matching_fail
                        nextStep = conclusionStep {
                            btnProceed = getString(R.string.elkyc_button_next)
                            nextStep = finishStep {
                                title = getString(R.string.elkyc_congrats_confirm_title)
                                text = getString(R.string.elkyc_congrats_confirm_description)
                                btnProceed = getString(R.string.elkyc_congrats_confirm_main_btn_title)
                                image = R.drawable.img_finish
                            }
                        }
                    }
                }
            }
        }

        val config = elkycConfig {
            customFlow = steps
            clientKey = keys.clientKey
            appKey = keys.appKey
            workplace = wConfig
        }

        Elkyc.startVerification(
            activity = requireActivity(),
            config = config,
            resultLauncher = resultLauncher,
            printLog = BuildConfig.DEBUG
        )

Last updated