ui / com.schibsted.account.ui.login.screen.identification / IdentificationPresenter

IdentificationPresenter

class IdentificationPresenter : IdentificationContract.Presenter

Following the MVP design pattern this interface represent the implementation of the IdentificationContract.Presenter. this class executes the mobile identification business logic and ask for UI updates depending on results.

Constructors

<init>

IdentificationPresenter(identificationView: IdentificationContract.View, provider: InputProvider<Identifier>?, flowSelectionListener: FlowSelectionListener?)

Following the MVP design pattern this interface represent the implementation of the IdentificationContract.Presenter. this class executes the mobile identification business logic and ask for UI updates depending on results.

Functions

getAccountStatus

fun getAccountStatus(input: InputField, allowSignUp: Boolean, signUpErrorMessage: String?): Unit

verifyInput

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

Verify the input of the user, the input could be a phone number or an email address.