User | Button SDK for Android v7.0.0
Interfaces
User
| com.usebutton.sdk.user.User |
Summary
| Public Methods |
|---|
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
| abstract void |
Public Methods
public abstract void setAddressLineOne( String addressLineOne)
This method is deprecated.
No replacement.
Sets an address one for the user's auto fill profile
ex.
Button.user().setAddressLineOne("220 Gateway Lane");
Parameters
| addressLineOne | The user's main address line. |
public abstract void setAddressLineTwo( String addressLineTwo)
This method is deprecated.
No replacement.
Sets an address two for the user's auto fill profile
ex.
Button.user().setAddressLineTwo("Unit 404");
Parameters
| addressLineTwo | The user's second address line. |
public abstract void setAutofillEnabled(boolean enabled)
This method is deprecated.
No replacement.
Use setAutofillEnabled(boolean).
Enables or disables autofill on merchant websites.
Parameters
| enabled | true or false |
public abstract void setCity( String city)
This method is deprecated.
No replacement.
Sets a city for the user's auto fill profile
ex.
Button.user().setCity("New York");
Parameters
| city | The user's city. |
public abstract void setCountry( String country)
This method is deprecated.
No replacement.
Sets a country for the user's auto fill profile.
ex.
Button.user().setCountry("US");
Parameters
| country | Two-letter abbreviation for the user's country. |
public abstract void setEmail( String email)
Sets an email for the user.
This value will be hashed using the SHA-256 algorithm and potentially used in the
Button Browser WebView.
ex.
Button.user().setEmail("bill@example.com");
Parameters
| email | The user's email address. |
public abstract void setFirstName( String firstName)
This method is deprecated.
No replacement.
Sets a first name for the user's auto fill profile
ex.
Button.user().setFirstName("Bill");
Parameters
| firstName | The user's first name. |
public abstract void setIdentifier( String identifier)
Sets the unique identifier for the user.
public abstract void setLastName( String lastName)
This method is deprecated.
No replacement.
Sets a last name for the user's auto fill profile
ex.
Button.user().setLastName("Valley");
Parameters
| lastName | The user's last name. |
public abstract void setPaymentMethodProvider( PaymentMethodProvider paymentMethodProvider)
This method is deprecated.
No replacement.
Sets the payment method provider for the user.
Parameters
| paymentMethodProvider | The object responsible for providing the user's payment details. |
public abstract void setPhoneNumber( String phoneNumber)
This method is deprecated.
No replacement.
Sets a phone number for the user's auto fill profile
ex.
Button.user().setPhoneNumber("1234567890");
Parameters
| phoneNumber | The user's phone number. |
public abstract void setPostalCode( String postalCode)
This method is deprecated.
No replacement.
Sets a postal code for the user's auto fill profile
ex.
Button.user().setPostalCode("10010");
Parameters
| postalCode | The user's postal code. |
public abstract void setState( String state)
This method is deprecated.
No replacement.
Sets a state for the user's auto fill profile.
ex.
Button.user().setState("NY");
Parameters
| state | Two-letter abbreviation for the user's state. |