public interface

User

com.usebutton.sdk.user.User

Summary

Public Methods
abstract void setAddressLineOne(String addressLineOne)
Sets an address one for the user's auto fill profile

ex.

abstract void setAddressLineTwo(String addressLineTwo)
Sets an address two for the user's auto fill profile

ex.

abstract void setAutofillEnabled(boolean enabled)
abstract void setCity(String city)
Sets a city for the user's auto fill profile

ex.

abstract void setEmail(String email)
Sets an email for the user's auto fill profile

ex.

abstract void setFirstName(String firstName)
Sets a first name for the user's auto fill profile

ex.

abstract void setIdentifier(String identifier)
Sets the unique identifier for the user.
abstract void setLastName(String lastName)
Sets a last name for the user's auto fill profile

ex.

abstract void setPhoneNumber(String phoneNumber)
Sets a phone number for the user's auto fill profile

ex.

abstract void setPostalCode(String postalCode)
Sets a postal code for the user's auto fill profile

ex.

abstract void setState(String state)
Sets a state for the user's auto fill profile.

Public Methods

public abstract void setAddressLineOne (String addressLineOne)

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)

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)

Use setAutofillEnabled(boolean). Enables or disables autofill on merchant websites.

Parameters
enabled true or false

public abstract void setCity (String city)

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 setEmail (String email)

Sets an email for the user's auto fill profile

ex. Button.user().setEmail("bill@example.com");

Parameters
email The user's email address.

public abstract void setFirstName (String firstName)

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)

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 setPhoneNumber (String phoneNumber)

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)

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)

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.