ui / com.schibsted.account.ui.login.screen.onesteplogin / OneStepLoginContract / Presenter

Presenter

interface Presenter

Functions

getAccountStatus

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

signIn

abstract fun signIn(identifier: InputField, credInputField: InputField, keepUserLoggedIn: Boolean, lifecycleOwner: LifecycleOwner, keyValueStore: KeyValueStore?): Unit

signup

abstract fun signup(identifier: InputField, credInputField: InputField, keepUserLoggedIn: Boolean, lifecycleOwner: LifecycleOwner): Unit

startSignin

abstract fun startSignin(): Unit

startSignup

abstract fun startSignup(): Unit

verifyInput

abstract fun verifyInput(identifier: InputField, identifierType: IdentifierType, allowSignup: Boolean, signUpErrorMessage: String?, callback: () -> Unit): 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

OneStepLoginPresenter

class OneStepLoginPresenter : OneStepLoginContract.Presenter