ui / com.schibsted.account.ui.login / LoginActivityViewModel

LoginActivityViewModel

class LoginActivityViewModel : ViewModel, FlowSelectionListener

Types

ClientResult

sealed class ClientResult

Constructors

<init>

LoginActivityViewModel(smartlockTask: SmartlockTask, uiConfiguration: InternalUiConfiguration, params: AccountUi.Params)

Properties

activityTitle

val activityTitle: MutableLiveData<LoginScreen>

clientResolvingState

val clientResolvingState: MutableLiveData<Boolean>

clientResult

val clientResult: MutableLiveData<Event<LoginActivityViewModel.ClientResult>>

credentialsProvider

var credentialsProvider: MutableLiveData<InputProvider<Credentials>>

loginController

val loginController: MutableLiveData<Event<LoginController>>

signUpController

val signUpController: MutableLiveData<Event<SignUpController>>

smartlockCredentials

var smartlockCredentials: MutableLiveData<Credentials>

smartlockReceiver

val smartlockReceiver: SmartlockReceiver

smartlockResolvingState

val smartlockResolvingState: MutableLiveData<Boolean>

smartlockResult

val smartlockResult: MutableLiveData<SmartlockTask.SmartLockResult>

startSmartLockFlow

val startSmartLockFlow: MutableLiveData<Boolean>

uiConfiguration

val uiConfiguration: MutableLiveData<InternalUiConfiguration>

user

val user: MutableLiveData<User>

userFlowType

var userFlowType: FlowSelectionListener.FlowType?

userIdentifier

var userIdentifier: Identifier?

Functions

getClientInfo

fun getClientInfo(intentClientInfo: ClientInfo?): Unit

initializeSmartlock

fun initializeSmartlock(): Unit

isDeepLinkRequestNewPassword

fun isDeepLinkRequestNewPassword(dataString: String?): Boolean

isFlowReady

fun isFlowReady(): Boolean

isSmartlockResolving

fun isSmartlockResolving(): Boolean

isUserAvailable

fun isUserAvailable(): Boolean

loginFromDeepLink

fun loginFromDeepLink(state: ValidateAccount): Unit

onFlowSelected

fun onFlowSelected(flowType: FlowSelectionListener.FlowType, identifier: Identifier): Unit
fun onFlowSelected(flowType: FlowSelectionListener.FlowType): Unit

startLoginController

fun startLoginController(contract: LoginContract): Unit

startSignUpController

fun startSignUpController(contract: SignUpContract): Unit

updateSmartlockCredentials

fun updateSmartlockCredentials(requestCode: Int, resultCode: Int, smartlockCredentials: Parcelable?): Unit