AccountPicker.AccountChooserOptions.Builder

public static class AccountPicker.AccountChooserOptions.Builder extends Object

The builder for creating an instance of the AccountPicker.AccountChooserOptions.

Public Constructor Summary

Public Method Summary

AccountPicker.AccountChooserOptions
AccountPicker.AccountChooserOptions.Builder
setAllowableAccounts(List<Account> allowableAccounts)
A list of Accounts that limit the accounts that are shown in the Account Picker to those in this list.
AccountPicker.AccountChooserOptions.Builder
setAllowableAccountsTypes(List<String> allowableAccountTypes)
Sets the type of allowed types of accounts.
AccountPicker.AccountChooserOptions.Builder
setAlwaysShowAccountPicker(boolean alwaysShowAccountPicker)
If true then shows the Account Picker even if there is just one account to choose from.
AccountPicker.AccountChooserOptions.Builder
setOptionsForAddingAccount(Bundle options)
Sets the options to be passed as the addAccountOptions parameter in AccountManager#addAccount().
AccountPicker.AccountChooserOptions.Builder
setSelectedAccount(Account selectedAccount)
Sets the specified account to "selected" in the Account Picker if this account is shown there.
AccountPicker.AccountChooserOptions.Builder
setTitleOverrideText(String titleOverrideText)
Overrides the default title of the Account Picker.

Inherited Method Summary

Public Constructors

public AccountPicker.AccountChooserOptions.Builder ()

Public Methods

public AccountPicker.AccountChooserOptions.Builder setAllowableAccounts (List<Account> allowableAccounts)

A list of Accounts that limit the accounts that are shown in the Account Picker to those in this list.

public AccountPicker.AccountChooserOptions.Builder setAllowableAccountsTypes (List<String> allowableAccountTypes)

Sets the type of allowed types of accounts. If supplied, it limits the accounts to those that match the types in this list. This list is also used to filter the allowable account types if add account is selected.

public AccountPicker.AccountChooserOptions.Builder setAlwaysShowAccountPicker (boolean alwaysShowAccountPicker)

If true then shows the Account Picker even if there is just one account to choose from.

public AccountPicker.AccountChooserOptions.Builder setOptionsForAddingAccount (Bundle options)

Sets the options to be passed as the addAccountOptions parameter in AccountManager#addAccount().

public AccountPicker.AccountChooserOptions.Builder setSelectedAccount (Account selectedAccount)

Sets the specified account to "selected" in the Account Picker if this account is shown there.

public AccountPicker.AccountChooserOptions.Builder setTitleOverrideText (String titleOverrideText)

Overrides the default title of the Account Picker.