public static class AccountKitConfiguration.AccountKitConfigurationBuilder
extends java.lang.Object
Constructor and Description |
---|
AccountKitConfiguration.AccountKitConfigurationBuilder(LoginType loginType,
AccountKitActivity.ResponseType responseType)
Creates an AccountKitConfigurationBuilder with the required parameters.
|
Modifier and Type | Method and Description |
---|---|
AccountKitConfiguration |
build()
Builders the configuration.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setAdvancedUIManager(AdvancedUIManager advancedUIManager)
Sets the Advanced UI Manager to be used for advanced customization of the UI.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setDefaultCountryCode(java.lang.String defaultCountryCode)
Sets the default country code, two letters to be used when in phone login mode.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setFacebookNotificationsEnabled(boolean facebookNotificationsEnabled)
Sets up whether facebook notifications can be used as the fallback for sms confirmation.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setInitialAuthState(java.lang.String initialAuthState)
Sets the initial auth state that will be passed with the login request.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setInitialEmail(java.lang.String initialEmail)
If using the email login flow, sets the initial email for the login flow
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setInitialPhoneNumber(PhoneNumber initialPhoneNumber)
If using the phone login flow, sets the initial phone number for the login flow
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setReadPhoneStateEnabled(boolean readPhoneStateEnabled)
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.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setReceiveSMS(boolean receiveSMSEnabled)
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.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setSMSBlacklist(java.lang.String[] smsBlacklist)
If using Phone Login, this sets the blacklist of country codes to be used for logging in.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setSMSWhitelist(java.lang.String[] smsWhitelist)
If using Phone Login, this sets the whitelist of country codes to be used for logging in.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setTheme(int theme)
Sets the resource id of the theme to use.
|
AccountKitConfiguration.AccountKitConfigurationBuilder |
setTitleType(AccountKitActivity.TitleType titleType)
Sets the type of title that is set in the header.
|
public AccountKitConfiguration.AccountKitConfigurationBuilder(LoginType loginType, AccountKitActivity.ResponseType responseType)
loginType
- the type of loginresponseType
- the response type expected at the end of the login operationpublic AccountKitConfiguration.AccountKitConfigurationBuilder setAdvancedUIManager(@Nullable AdvancedUIManager advancedUIManager)
advancedUIManager
- the advanced UI managerpublic AccountKitConfiguration.AccountKitConfigurationBuilder setDefaultCountryCode(@Nullable java.lang.String defaultCountryCode)
defaultCountryCode
- two letter country codepublic AccountKitConfiguration.AccountKitConfigurationBuilder setFacebookNotificationsEnabled(boolean facebookNotificationsEnabled)
facebookNotificationsEnabled
- whether facebook notifications are enabled (true by
default)public AccountKitConfiguration.AccountKitConfigurationBuilder setInitialAuthState(@Nullable java.lang.String initialAuthState)
initialAuthState
- the initial auth statepublic AccountKitConfiguration.AccountKitConfigurationBuilder setInitialEmail(@Nullable java.lang.String initialEmail)
initialEmail
- the email to default topublic AccountKitConfiguration.AccountKitConfigurationBuilder setInitialPhoneNumber(@Nullable PhoneNumber initialPhoneNumber)
initialPhoneNumber
- the initial phone number.public AccountKitConfiguration.AccountKitConfigurationBuilder setReadPhoneStateEnabled(boolean readPhoneStateEnabled)
readPhoneStateEnabled
- if reading phone state is enabled (READ_PHONE_STATE
permission must also be granted)public AccountKitConfiguration.AccountKitConfigurationBuilder setReceiveSMS(boolean receiveSMSEnabled)
receiveSMSEnabled
- if receiving SMS is enabled (RECEIVE_SMS permission must also be
granted)public AccountKitConfiguration.AccountKitConfigurationBuilder setSMSBlacklist(@Nullable java.lang.String[] smsBlacklist)
smsBlacklist
- the blacklist of two letter country codespublic AccountKitConfiguration.AccountKitConfigurationBuilder setSMSWhitelist(@Nullable java.lang.String[] smsWhitelist)
smsWhitelist
- the whitelist of two letter country codespublic AccountKitConfiguration.AccountKitConfigurationBuilder setTheme(int theme)
theme
- the theme resourceIdpublic AccountKitConfiguration.AccountKitConfigurationBuilder setTitleType(@Nullable AccountKitActivity.TitleType titleType)
titleType
- the title typepublic AccountKitConfiguration build()