Examples
1
val steps = documentCaptureStep {
2
docType = DocType.ANY
3
title = getString(R.string.elkyc_document_intro_woldwide_title)
4
instruction = getString(R.string.elkyc_document_intro_woldwide_description)
5
withRfid = rfidStep {
6
title = getString(R.string.elkyc_rfid_scan_tite)
7
instruction = getString(R.string.elkyc_rfid_scan_description)
8
btnProceed = getString(R.string.elkyc_button_next)
9
btnCancel = getString(R.string.elkyc_rfid_btn_skip_title)
10
btnRetry = getString(R.string.elkyc_rfid_btn_retry_title)
11
waitingTitle = getString(R.string.elkyc_rfid_scan_waiting_title)
12
waitingText = getString(R.string.elkyc_rfid_scan_description)
13
successTitle = getString(R.string.elkyc_rfid_scan_success_title)
14
successText = getString(R.string.elkyc_rfid_scan_status_success)
15
successImage = R.drawable.img_matching_success
16
failTitle = getString(R.string.elkyc_rfid_nfc_error)
17
failText = getString(R.string.elkyc_rfid_scan_error_instruction)
18
failImage = R.drawable.img_rfid_error
19
}
20
useGallery = true
21
btnGallery = getString(R.string.elkyc_document_intro_gallery_btn_title)
22
btnCapture = getString(R.string.elkyc_document_intro_main_btn_title)
23
image = R.drawable.img_doc_intro
24
nextStep = documentCaptureStep {
25
docType = DocType.UTILITY_BILL
26
title = getString(R.string.elkyc_document_intro_utility_bill_title)
27
instruction = getString(R.string.elkyc_document_intro_utility_bill_description)
28
useGallery = true
29
btnGallery = getString(R.string.elkyc_document_intro_gallery_btn_title)
30
btnCapture = getString(R.string.elkyc_document_intro_main_btn_title)
31
image = R.drawable.img_worldwide_ub_intro
32
mask = R.drawable.img_worldwide_ub_mask
33
nextStep = welcomeStep {
34
title = getString(R.string.elkyc_intro_liveness_title)
35
text = getString(R.string.elkyc_intro_liveness_description)
36
btnProceed = getString(R.string.elkyc_button_next)
37
image = R.drawable.img_matching_intro
38
nextStep = matchingStep {
39
titleSuccess = getString(R.string.elkyc_liveness_confirm_success_title)
40
imageSuccess = R.drawable.img_matching_success
41
btnProceed = getString(R.string.elkyc_button_next)
42
titleFail = getString(R.string.elkyc_liveness_confirm_fail_title)
43
textFail = getString(R.string.elkyc_liveness_confirm_fail_description)
44
imageFail = R.drawable.img_matching_fail
45
nextStep = conclusionStep {
46
btnProceed = getString(R.string.elkyc_button_next)
47
nextStep = finishStep {
48
title = getString(R.string.elkyc_congrats_confirm_title)
49
text = getString(R.string.elkyc_congrats_confirm_description)
50
btnProceed = getString(R.string.elkyc_congrats_confirm_main_btn_title)
51
image = R.drawable.img_finish
52
}
53
}
54
}
55
}
56
}
57
}
58
59
val config = elkycConfig {
60
customFlow = steps
61
clientKey = keys.clientKey
62
appKey = keys.appKey
63
workplace = wConfig
64
}
65
66
Elkyc.startVerification(
67
activity = requireActivity(),
68
config = config,
69
resultLauncher = resultLauncher,
70
printLog = BuildConfig.DEBUG
71
)
Copied!
Copy link