AccountKitConfiguration.AccountKitConfigurationBuilder
Esta classe não está mais disponível na versão mais recente do SDK.
Estende:Object
Pacote:ui
Construtores
AccountKitConfiguration.AccountKitConfigurationBuilder(LoginType, ResponseType)

Creates an AccountKitConfigurationBuilder with the required parameters.

public AccountKitConfiguration.AccountKitConfigurationBuilder(LoginType loginType, ResponseType responseType)
ParâmetroDescrição
loginTypeThe type of login
responseTypeThe response type expected at the end of the login operation
Métodos de instância
setAdvancedUIManager(AdvancedUIManager)

Sets the Advanced UI Manager to be used for advanced customization of the UI.

public AccountKitConfigurationBuilder setAdvancedUIManager(AdvancedUIManager advancedUIManager)
ParâmetroDescrição
advancedUIManagerThe advanced UI manager
Returns
The configuration builder
setDefaultCountryCode(String)

Sets the default country code, two letters to be used when in phone login mode.

public AccountKitConfigurationBuilder setDefaultCountryCode(String defaultCountryCode)
ParâmetroDescrição
defaultCountryCodeTwo letter country code
Returns
The configuration builder
setFacebookNotificationsEnabled(boolean)

Sets up whether facebook notifications can be used as the fallback for sms confirmation. This option is true by default.

public AccountKitConfigurationBuilder setFacebookNotificationsEnabled(boolean facebookNotificationsEnabled)
ParâmetroDescrição
facebookNotificationsEnabledWhether facebook notifications are enabled (true by default)
Returns
The configuration builder
setInitialAuthState(String)

Sets the initial auth state that will be passed with the login request. It will be returned as the final auth state at the end of the login operation.

public AccountKitConfigurationBuilder setInitialAuthState(String initialAuthState)
ParâmetroDescrição
initialAuthStateThe initial auth state
Returns
The configuration builder
setInitialEmail(String)

If using the email login flow, sets the initial email for the login flow

public AccountKitConfigurationBuilder setInitialEmail(String initialEmail)
ParâmetroDescrição
initialEmailThe email to default to
Returns
The configuration builder
setInitialPhoneNumber(PhoneNumber)

If using the phone login flow, sets the initial phone number for the login flow

public AccountKitConfigurationBuilder setInitialPhoneNumber(PhoneNumber initialPhoneNumber)
ParâmetroDescrição
initialPhoneNumberThe initial phone number.
Returns
The configuration builder
setReadPhoneStateEnabled(boolean)

If the READ_PHONE_STATE permission is given and ths is true, when the phone number entry is displayed, the phone number of the device SIM will be entered. True by default.

public AccountKitConfigurationBuilder setReadPhoneStateEnabled(boolean readPhoneStateEnabled)
ParâmetroDescrição
readPhoneStateEnabledIf reading phone state is enabled (READ_PHONE_STATE permission must also be granted)
Returns
The configuration builder
setReceiveSMS(boolean)

If the RECEIVE_SMS permission is given and this is true, when the confirmation code is received in the SMS flow, we will automatically read in the code. True by default.

public AccountKitConfigurationBuilder setReceiveSMS(boolean receiveSMSEnabled)
ParâmetroDescrição
receiveSMSEnabledIf receiving SMS is enabled (RECEIVE_SMS permission must also be granted)
Returns
The configuration builder
setSMSBlacklist(String)

If using Phone Login, this sets the blacklist of country codes to be used for logging in. The order of operation is: 1) If no whitelist or blacklist, use all available country codes 2) If whitelist specified, use that as the base. Remove any blacklisted codes. 3) If only blacklist specified, use all available country codes and remove any blacklisted ones.

public AccountKitConfigurationBuilder setSMSBlacklist(String smsBlacklist)
ParâmetroDescrição
smsBlacklistThe blacklist of two letter country codes
Returns
The configuration builder
setSMSWhitelist(String)

If using Phone Login, this sets the whitelist of country codes to be used for logging in. The order of operation is: 1) If no whitelist or blacklist, use all available country codes 2) If whitelist specified, use that as the base. Remove any blacklisted codes. 3) If only blacklist specified, use all available country codes and remove any blacklisted ones.

public AccountKitConfigurationBuilder setSMSWhitelist(String smsWhitelist)
ParâmetroDescrição
smsWhitelistThe whitelist of two letter country codes
Returns
The configuration builder
setTheme(int)

Sets the resource id of the theme to use. This theme should extend from AccountKit.Theme.

public AccountKitConfigurationBuilder setTheme(int theme)
ParâmetroDescrição
themeThe theme resourceId
Returns
The configuration builder
setTitleType(TitleType)

Sets the type of title that is set in the header.

public AccountKitConfigurationBuilder setTitleType(TitleType titleType)
ParâmetroDescrição
titleTypeThe title type
Returns
The configuration builder
build()

Builders the configuration.

public AccountKitConfiguration build()
Returns
The configuration