-
@RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP) public class GenericIdpSignInHandler extends ProviderSignInBase<AuthUI.IdpConfig>
-
-
Constructor Summary
Constructors Constructor Description GenericIdpSignInHandler(Application application)
-
Method Summary
Modifier and Type Method Description static AuthUI.IdpConfiggetGenericGoogleConfig()static AuthUI.IdpConfiggetGenericFacebookConfig()final voidstartSignIn(@NonNull() HelperActivityBase activity)Start the login process for the IDP, e.g. 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. OAuthProviderbuildOAuthProvider(String providerId, FirebaseAuth auth)voidonActivityResult(int requestCode, int resultCode, @Nullable() Intent data)voidinitializeForTesting(AuthUI.IdpConfig idpConfig)-
Methods inherited from class com.firebase.ui.auth.viewmodel.ProviderSignInBase
initWith, startSignIn -
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
-
-
Constructor Detail
-
GenericIdpSignInHandler
GenericIdpSignInHandler(Application application)
-
-
Method Detail
-
getGenericGoogleConfig
@NonNull() static AuthUI.IdpConfig getGenericGoogleConfig()
-
getGenericFacebookConfig
@NonNull() static AuthUI.IdpConfig getGenericFacebookConfig()
-
startSignIn
final 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
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.
-
buildOAuthProvider
OAuthProvider buildOAuthProvider(String providerId, FirebaseAuth auth)
-
onActivityResult
void onActivityResult(int requestCode, int resultCode, @Nullable() Intent data)
-
initializeForTesting
void initializeForTesting(AuthUI.IdpConfig idpConfig)
-
-
-
-