ui / com.schibsted.account.ui.login.screen.identification / IdentificationContract / Presenter / verifyInput

verifyInput

abstract fun verifyInput(identifier: InputField, identifierType: IdentifierType, allowSignup: Boolean, signUpErrorMessage: String?): Unit

Use this method to verify the input provided by the view. This method should request a navigation to the next step in case of success and should ask the view to show an error if any failure occurs

Parameters

identifier - the identifier use to signup the user, it could be a phone number or an email address

identifierType - the type of verification to perform, this is used to make a call to the server side

allowSignup - a flag used to know if the signup option is allowed

signUpErrorMessage - an optional error message to show if the user want to signup but it's not allowed