ui / com.schibsted.account.ui.login.screen.onesteplogin / OneStepLoginPresenter

OneStepLoginPresenter

class OneStepLoginPresenter : OneStepLoginContract.Presenter

Constructors

<init>

OneStepLoginPresenter(view: OneStepLoginContract.View, credProvider: MutableLiveData<InputProvider<Credentials>>, smartlockController: SmartlockController?, flowSelectionListener: FlowSelectionListener?)

Functions

getAccountStatus

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

signIn

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

signup

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

startSignin

fun startSignin(): Unit

startSignup

fun startSignup(): Unit

verifyInput

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

Verify the input of the user, the input could be an email address.