-
@RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP) public abstract class ProviderSignInBase<T> extends OperableViewModel<T, Resource<IdpResponse>>
Handles retrieving a provider's login credentials, be that a token, secret, or both.
-
-
Method Summary
Modifier and Type Method Description abstract voidstartSignIn(@NonNull() HelperActivityBase activity)Start the login process for the IDP, e.g. abstract voidstartSignIn(@NonNull() FirebaseAuth auth, @NonNull() HelperActivityBase activity, @NonNull() String providerId)Start the login process for the IDP using the web based Generic IDP flow if applicable,e.g. abstract voidonActivityResult(int requestCode, int resultCode, @Nullable() Intent data)ProviderSignInBase<T>initWith(T args)Just a convenience method that makes certain chaining logic easier. -
Methods inherited from class com.firebase.ui.auth.viewmodel.OperableViewModel
getOperation -
Methods inherited from class com.firebase.ui.auth.viewmodel.ViewModelBase
init -
Methods inherited from class androidx.lifecycle.AndroidViewModel
getApplication -
Methods inherited from class androidx.lifecycle.ViewModel
addCloseable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
startSignIn
abstract void startSignIn(@NonNull() HelperActivityBase activity)
Start the login process for the IDP, e.g. show the Google sign-in activity.
- Parameters:
activity- from which to start the login, DO NOT USE OUTSIDE OF THIS METHOD!!!
-
startSignIn
abstract void startSignIn(@NonNull() FirebaseAuth auth, @NonNull() HelperActivityBase activity, @NonNull() String providerId)
Start the login process for the IDP using the web based Generic IDP flow if applicable,e.g. sign-in through a custom-chrome tab, otherwise falls back to the default method.
- Parameters:
auth- the Firebase auth instanceactivity- from which to start the login, DO NOT USE OUTSIDE OF THIS METHOD!!!providerId- the provider to sign-in with (e.g.
-
onActivityResult
abstract void onActivityResult(int requestCode, int resultCode, @Nullable() Intent data)
-
initWith
ProviderSignInBase<T> initWith(T args)
Just a convenience method that makes certain chaining logic easier.
-
-
-
-