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

Presenter

interface Presenter

Defines methods implemented by the presenter performing identification business

See Also

com.schibsted.account.ui.login.screen.identification.ui.MobileIdentificationFragment

com.schibsted.account.ui.login.screen.identification.ui.EmailIdentificationFragment

Functions

getAccountStatus

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

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

Inheritors

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.