public interface Step
StepperLayout steps must implement.| Modifier and Type | Method and Description |
|---|---|
void |
onError(VerificationError error)
Called when the user clicked on the Next/Complete button and the step verification failed.
|
void |
onSelected()
Called when this step gets selected in the the stepper layout.
|
VerificationError |
verifyStep()
Checks if the stepper can go to the next step after this step.
This does not mean the user clicked on the Next/Complete button. If the user clicked the Next/Complete button and wants to be informed of that error he should handle this in onError(VerificationError). |
@Nullable VerificationError verifyStep()
onError(VerificationError).void onSelected()
void onError(@NonNull
VerificationError error)
error - the cause of the validation failure