Package com.firebase.ui.auth
Class AuthUI.IdpConfig.GoogleBuilder
- java.lang.Object
-
- com.firebase.ui.auth.AuthUI.IdpConfig.Builder
-
- com.firebase.ui.auth.AuthUI.IdpConfig.GoogleBuilder
-
- Enclosing class:
- AuthUI.IdpConfig
public static final class AuthUI.IdpConfig.GoogleBuilder extends AuthUI.IdpConfig.Builder
AuthUI.IdpConfig
builder for the Google provider.
-
-
Constructor Summary
Constructors Constructor Description GoogleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthUI.IdpConfig
build()
AuthUI.IdpConfig.GoogleBuilder
setScopes(List<String> scopes)
Set the scopes that your app will request when using Google sign-in.AuthUI.IdpConfig.GoogleBuilder
setSignInOptions(com.google.android.gms.auth.api.signin.GoogleSignInOptions options)
Set theGoogleSignInOptions
to be used for Google sign-in.-
Methods inherited from class com.firebase.ui.auth.AuthUI.IdpConfig.Builder
getParams, setProviderId
-
-
-
-
Method Detail
-
setScopes
@NonNull public AuthUI.IdpConfig.GoogleBuilder setScopes(@NonNull List<String> scopes)
Set the scopes that your app will request when using Google sign-in. See all available scopes.- Parameters:
scopes
- additional scopes to be requested
-
setSignInOptions
@NonNull public AuthUI.IdpConfig.GoogleBuilder setSignInOptions(@NonNull com.google.android.gms.auth.api.signin.GoogleSignInOptions options)
Set theGoogleSignInOptions
to be used for Google sign-in. Standard options like requesting the user's email will automatically be added.- Parameters:
options
- sign-in options
-
build
@NonNull public AuthUI.IdpConfig build()
- Overrides:
build
in classAuthUI.IdpConfig.Builder
-
-