The builder for creating an instance of the AccountPicker.AccountChooserOptions.
| AccountPicker.AccountChooserOptions |
build()
Builds an instance of
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 |
Builds an instance of
AccountPicker.AccountChooserOptions.
A list of Accounts
that limit the accounts that are shown in the Account Picker to those in this list.
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.
If true then shows the Account Picker even if there is just one account
to choose from.
Sets the options to be passed as the addAccountOptions parameter in
AccountManager#addAccount().
Sets the specified account to "selected" in the Account Picker if this account is shown there.
Overrides the default title of the Account Picker.