AccountPicker.AccountChooserOptions.Builder

class AccountPicker.AccountChooserOptions.Builder


The builder for creating an instance of the AccountChooserOptions.

Summary

Public constructors

Public functions

AccountPicker.AccountChooserOptions!

Builds an instance of AccountChooserOptions.

AccountPicker.AccountChooserOptions.Builder!

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

AccountPicker.AccountChooserOptions.Builder!

Sets the type of allowed types of accounts.

AccountPicker.AccountChooserOptions.Builder!

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

AccountPicker.AccountChooserOptions.Builder!

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

AccountPicker.AccountChooserOptions.Builder!

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

AccountPicker.AccountChooserOptions.Builder!

Overrides the default title of the Account Picker.

Public constructors

Builder

Builder()

Public functions

build

fun build(): AccountPicker.AccountChooserOptions!

Builds an instance of AccountChooserOptions.

setAllowableAccounts

@CanIgnoreReturnValue
fun setAllowableAccounts(allowableAccounts: (Mutable)List<Account!>?): AccountPicker.AccountChooserOptions.Builder!

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

setAllowableAccountsTypes

@CanIgnoreReturnValue
fun setAllowableAccountsTypes(allowableAccountTypes: (Mutable)List<String!>?): AccountPicker.AccountChooserOptions.Builder!

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.

setAlwaysShowAccountPicker

@CanIgnoreReturnValue
fun setAlwaysShowAccountPicker(alwaysShowAccountPicker: Boolean): AccountPicker.AccountChooserOptions.Builder!

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

setOptionsForAddingAccount

@CanIgnoreReturnValue
fun setOptionsForAddingAccount(options: Bundle?): AccountPicker.AccountChooserOptions.Builder!

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

setSelectedAccount

@CanIgnoreReturnValue
fun setSelectedAccount(selectedAccount: Account?): AccountPicker.AccountChooserOptions.Builder!

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

setTitleOverrideText

@CanIgnoreReturnValue
fun setTitleOverrideText(titleOverrideText: String?): AccountPicker.AccountChooserOptions.Builder!

Overrides the default title of the Account Picker.