Package com.firebase.ui.auth.data.remote
Class GoogleSignInHandler
- java.lang.Object
-
- androidx.lifecycle.ViewModel
-
- androidx.lifecycle.AndroidViewModel
-
- com.firebase.ui.auth.viewmodel.ViewModelBase<I>
-
- com.firebase.ui.auth.viewmodel.OperableViewModel<T,Resource<IdpResponse>>
-
- com.firebase.ui.auth.viewmodel.ProviderSignInBase<T>
-
- com.firebase.ui.auth.data.remote.SingleProviderSignInHandler<GoogleSignInHandler.Params>
-
- com.firebase.ui.auth.data.remote.GoogleSignInHandler
-
public class GoogleSignInHandler extends SingleProviderSignInHandler<GoogleSignInHandler.Params>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGoogleSignInHandler.Params
-
Constructor Summary
Constructors Constructor Description GoogleSignInHandler(Application application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonActivityResult(int requestCode, int resultCode, Intent data)protected voidonCreate()voidstartSignIn(com.google.firebase.auth.FirebaseAuth auth, HelperActivityBase activity, String providerId)Start the login process for the IDP using the web based Generic IDP flow if applicable, e.g.-
Methods inherited from class com.firebase.ui.auth.data.remote.SingleProviderSignInHandler
startSignIn
-
Methods inherited from class com.firebase.ui.auth.viewmodel.ProviderSignInBase
initWith
-
Methods inherited from class com.firebase.ui.auth.viewmodel.OperableViewModel
getOperation, setResult
-
Methods inherited from class com.firebase.ui.auth.viewmodel.ViewModelBase
getArguments, init, onCleared, setArguments
-
-
-
-
Constructor Detail
-
GoogleSignInHandler
public GoogleSignInHandler(Application application)
-
-
Method Detail
-
onCreate
protected void onCreate()
- Overrides:
onCreatein classViewModelBase<GoogleSignInHandler.Params>
-
startSignIn
public void startSignIn(@NonNull com.google.firebase.auth.FirebaseAuth auth, @NonNull HelperActivityBase activity, @NonNull String providerId)Description copied from class:ProviderSignInBaseStart 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.- Specified by:
startSignInin classProviderSignInBase<GoogleSignInHandler.Params>- 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. "microsoft.com")
-
onActivityResult
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data)- Specified by:
onActivityResultin classProviderSignInBase<GoogleSignInHandler.Params>
-
-