public static final class AuthUI.IdpConfig.GoogleBuilder extends AuthUI.IdpConfig.Builder
AuthUI.IdpConfig
builder for the Google provider.Constructor and Description |
---|
GoogleBuilder() |
Modifier and Type | Method and Description |
---|---|
AuthUI.IdpConfig |
build() |
AuthUI.IdpConfig.GoogleBuilder |
setScopes(java.util.List<java.lang.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 the
GoogleSignInOptions to be used for Google sign-in. |
getParams
@NonNull public AuthUI.IdpConfig.GoogleBuilder setScopes(@NonNull java.util.List<java.lang.String> scopes)
scopes
- additional scopes to be requested@NonNull public AuthUI.IdpConfig.GoogleBuilder setSignInOptions(@NonNull com.google.android.gms.auth.api.signin.GoogleSignInOptions options)
GoogleSignInOptions
to be used for Google sign-in. Standard
options like requesting the user's email will automatically be added.options
- sign-in options@NonNull public AuthUI.IdpConfig build()
build
in class AuthUI.IdpConfig.Builder