public static class

CredentialPickerConfig.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.auth.api.credentials.CredentialPickerConfig.Builder

Class Overview

Builder for CredentialPickerConfig.

Summary

Public Constructors
CredentialPickerConfig.Builder()
Public Methods
CredentialPickerConfig build()
CredentialPickerConfig.Builder setForNewAccount(boolean forNewAccount)
This method is deprecated. Replaced by setPrompt(int).
CredentialPickerConfig.Builder setPrompt(int prompt)
Sets the text prompt for the hint picker dialog title.
CredentialPickerConfig.Builder setShowAddAccountButton(boolean showAddAccountButton)
Sets whether the add account button should be shown in credential picker dialog.
CredentialPickerConfig.Builder setShowCancelButton(boolean showCancelButton)
Sets whether the cancel button should be shown in credential picker dialog.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CredentialPickerConfig.Builder ()

Public Methods

public CredentialPickerConfig.Builder setForNewAccount (boolean forNewAccount)

This method is deprecated.
Replaced by setPrompt(int).

Sets whether the hint request is for a new account sign-up flow.

Parameters
forNewAccount boolean
Returns
CredentialPickerConfig.Builder

public CredentialPickerConfig.Builder setPrompt (int prompt)

Sets the text prompt for the hint picker dialog title. If you are using a list of suggested credential data for new account creation, we recommend using Prompt.SIGN_UP and the user will see the "Sign up with" prompt, whereas for signing in to an existing account, using Prompt.SIGN_IN will result in the user seeing "Sign in with". Otherwise, the default prompt is "Continue with".

Parameters
prompt int
Returns
CredentialPickerConfig.Builder

public CredentialPickerConfig.Builder setShowAddAccountButton (boolean showAddAccountButton)

Sets whether the add account button should be shown in credential picker dialog.

Parameters
showAddAccountButton boolean
Returns
CredentialPickerConfig.Builder

public CredentialPickerConfig.Builder setShowCancelButton (boolean showCancelButton)

Sets whether the cancel button should be shown in credential picker dialog.

Parameters
showCancelButton boolean
Returns
CredentialPickerConfig.Builder