CredentialPickerConfig.Builder

public static class CredentialPickerConfig.Builder extends Object

Builder for CredentialPickerConfig.

Public Constructor Summary

Public Method Summary

CredentialPickerConfig
CredentialPickerConfig.Builder
setForNewAccount(boolean forNewAccount)
This method was 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.

Inherited Method Summary

Public Constructors

public CredentialPickerConfig.Builder ()

Public Methods

public CredentialPickerConfig build ()

public CredentialPickerConfig.Builder setForNewAccount (boolean forNewAccount)

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

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

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".

public CredentialPickerConfig.Builder setShowAddAccountButton (boolean showAddAccountButton)

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

public CredentialPickerConfig.Builder setShowCancelButton (boolean showCancelButton)

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