Predefined steps
All our frameworks have predefined steps which can be easily used. Almost all steps have configs and inputs. In this section, I will describe all available steps in the current framework, their configs and will show how they look like.
Right now all steps localized in Russian and English.

Welcome step

This step might be used as intro for other steps in the chain as well as whole process. It doesn't depend on any other steps
By press on the Proceed button the user will be led to the next step if it exists
1
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 = nextStep
7
}
Copied!
  • title - title field (optional)
  • text - text field (optional)
  • image - image form you resources (optional)
  • btnProceed - text on the continue button (optional)
  • nextStep - next step (optional)

Prepare step

It might go before any other step to inform user what they will see next
By press on the Proceed button the user will be led to the next step if it exists
1
prepareStep {
2
title = "Take selfie"
3
instruction = "We will compare your photo with your document"
4
criteria = criteriaList
5
btnProceed = "Take a photo"
6
nextStep = nextStep
7
}
Copied!
  • title - title field (optional)
  • instruction - instruction text field (optional)
  • criteria - list of recommendation that you may provide to an user (optional)
  • image - image (optional)
  • btnProceed - text on the continue button (optional)
  • nextStep - next step (optional)

Guidance step

It is used to give recommendations to an user for the better process of verification. There is also link to the Privacy Policy, that must be accepted before continue process.
By press on the Proceed button the user will be led to the next step if it exist
1
guidanceStep {
2
title = "Before you start ☝"
3
guidance = guidanceList
4
policyText = "I have read and accepted the "
5
policyLinkedText = "Privacy Policy"
6
policyLink = "https://www.iubenda.com/privacy-policy/25050240"
7
btnProceed = "Start your verification"
8
nextStep = nextStep
9
}
Copied!
  • title - title field (optional)
  • guidance - list of recommendation that you may provide to an user (optional)
  • policyText - invitation to accept the Privacy Policy (optional)
  • policyLinkedText - linked part of the invitation (optional)
  • policyLink - link to the Privacy Policy (optional)
  • btnProceed - text on the continue button (optional)
  • nextStep - next step (optional)
1
val guidanceList = listOf(
2
CriteriaModel(
3
icon = R.drawable.ic_num_1,
4
text = "Choose a place with a good lighting"
5
),
6
CriteriaModel(
7
icon = R.drawable.ic_num_2,
8
text = "Have your ID documents ready"
9
),
10
CriteriaModel(
11
icon = R.drawable.ic_num_3,
12
text = "Get ready to take photos of your documents and selfies with them"
13
),
14
CriteriaModel(
15
icon = R.drawable.ic_num_4,
16
text = "Accept the policy terms below"
17
),
18
//...
19
)
Copied!
  • icon - recommendation icon (required, might be 0, if you want to skip)
  • text - recommendation text (required)

Confirm step

This step may follow after anther one to confirm the data that obtained on it. It is required that step before Confirm step obtains some data (docStep, faceStep). The obtained data will be represented on the screen. If Confirm step is in chain, obtained data will be sent to server only after confirmation, otherwise directly after obtaining.
By press on the Retry button the user will be led to the previous step
By press on the Proceed button the user will be led to the next step if it exists
1
confirmStep {
2
title = "Make sure that:"
3
criteriaList = confirmCriteria
4
btnRetry = "Retake"
5
btnProceed = "Ready for next"
6
nextStep = nextStep
7
}
Copied!
  • title - title field (optional)
  • criteriaList - list of criteria that you may ask an user to check before continue (optional)
  • btnRetry - text on the retry button (optional)
  • btnProceed - text on the continue button (optional)
  • nextStep - next step (optional)
1
val confirmCriteria = listOf(
2
CriteriaModel(
3
icon = R.drawable.ic_confirm_criteria_1,
4
text = "All the elements are clear"
5
),
6
CriteriaModel(
7
icon = R.drawable.ic_confirm_criteria_2,
8
text = "The entire document is in the frame"
9
),
10
CriteriaModel(
11
icon = R.drawable.ic_confirm_criteria_3,
12
text = "No light glare"
13
),
14
//...
15
)
Copied!
  • icon - criteria icon (required, might be 0, if you want to skip)
  • text - criteria text (required)

Finish step

This step might be used in the end of the flow to inform the user about results of the process. It doesn't have nextStep property
By press on the Proceed button the process will finis
1
finishStep {
2
title = "Thank you!"
3
text = "The documents have been sent for verification to our employees. We will send you a notification when everything is ready."
4
btnProceed = "Got it!"
5
image = R.drawable.img_finish
6
}
Copied!
  • title - title field (optional)
  • text - text field (optional)
  • image - image form you resources (optional)
  • btnProceed - text on the continue button (optional)

Last modified 2mo ago