Class WelcomeBackPasswordHandler
- java.lang.Object
-
- androidx.lifecycle.ViewModel
-
- androidx.lifecycle.AndroidViewModel
-
- com.firebase.ui.auth.viewmodel.ViewModelBase<I>
-
- com.firebase.ui.auth.viewmodel.OperableViewModel<FlowParameters,Resource<T>>
-
- com.firebase.ui.auth.viewmodel.AuthViewModelBase<IdpResponse>
-
- com.firebase.ui.auth.viewmodel.SignInViewModelBase
-
- com.firebase.ui.auth.viewmodel.email.WelcomeBackPasswordHandler
-
public class WelcomeBackPasswordHandler extends SignInViewModelBase
Handles the logic forWelcomeBackPasswordPrompt
including signing in with email and password, linking other credentials, and saving credentials to SmartLock.
-
-
Constructor Summary
Constructors Constructor Description WelcomeBackPasswordHandler(Application application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPendingPassword()
Get the most recent pending password.void
startSignIn(String email, String password, IdpResponse inputResponse, com.google.firebase.auth.AuthCredential credential)
Kick off the sign-in process.-
Methods inherited from class com.firebase.ui.auth.viewmodel.SignInViewModelBase
handleMergeFailure, handleMergeFailure, handleSuccess, setResult
-
Methods inherited from class com.firebase.ui.auth.viewmodel.AuthViewModelBase
getAuth, getCredentialsClient, getCurrentUser, initializeForTesting, onCreate
-
Methods inherited from class com.firebase.ui.auth.viewmodel.OperableViewModel
getOperation
-
Methods inherited from class com.firebase.ui.auth.viewmodel.ViewModelBase
getArguments, init, onCleared, setArguments
-
-
-
-
Constructor Detail
-
WelcomeBackPasswordHandler
public WelcomeBackPasswordHandler(Application application)
-
-
Method Detail
-
startSignIn
public void startSignIn(@NonNull String email, @NonNull String password, @NonNull IdpResponse inputResponse, @Nullable com.google.firebase.auth.AuthCredential credential)
Kick off the sign-in process.
-
getPendingPassword
public String getPendingPassword()
Get the most recent pending password.
-
-