elKYC Android SDK
Search…
Steps usage
To make a chain of the process flow just specify next step in the nextStep property. As a rule, it is optional and if it isn't specified it will be last step in the chain. Some of steps depends on previous of following, it is indicated in their descriptions.
1
val steps = welcomeStep {
2
title = "Get ready to scan your documents"
3
text = "Prepare your document and move to a place with good lighting"
4
image = R.drawable.img_intro
5
btnProceed = "Select a document"
6
nextStep = documentCaptureStep {
7
docType = DocType.ID_CARD
8
title = "Travel document photo"
9
instruction = "Make sure the lighting is good and take a photo. Or download from the photo library"
10
btnCapture = "Take a photo"
11
image = R.drawable.img_doc_intro
12
mask = R.drawable.img_doc_mask
13
nextStep = confirmStep {
14
title = "Make sure that:"
15
criteriaList = confirmCriteria
16
btnRetry = "Retake"
17
btnProceed = "Ready for next"
18
nextStep = finishStep {
19
title = "Thank you!"
20
text = "The documents have been sent for verification to our employees. We will send you a notification when everything is ready."
21
btnProceed = "Got it!"
22
image = R.drawable.img_finish
23
}
24
}
25
}
26
}
Copied!
Copy link