public final class

UserAddress

extends Object
implements Parcelable Parcelable
java.lang.Object
   ↳ com.google.android.gms.identity.intents.model.UserAddress

Class Overview

Parcelable representing an address.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<UserAddress> CREATOR
Public Methods
static UserAddress fromIntent(Intent data)
String getAddress1()
String getAddress2()
String getAddress3()
String getAddress4()
String getAddress5()
String getAdministrativeArea()
String getCompanyName()
String getCountryCode()
String getEmailAddress()
String getLocality()
String getName()
String getPhoneNumber()
String getPostalCode()
String getSortingCode()
boolean isPostBox()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<UserAddress> CREATOR

Public Methods

public static UserAddress fromIntent (Intent data)

Parameters
data Intent
Returns
UserAddress

public String getAddress1 ()

Returns
String The first line of the address. If omitted, defaults to "".

public String getAddress2 ()

Returns
String The second line of the address. If omitted, defaults to "".

public String getAddress3 ()

Returns
String The third line of the address. If omitted, defaults to "".

public String getAddress4 ()

Returns
String The fourth line of the address. If omitted, defaults to "".

public String getAddress5 ()

Returns
String The fifth line of the address. If omitted, defaults to "".

public String getAdministrativeArea ()

Returns
String The state, province, etc. If omitted, defaults to "".

public String getCompanyName ()

Returns
String The company name of the address. If omitted, defaults to "".

public String getCountryCode ()

Returns
String The 2-letter ISO-3166 country code. If omitted, defaults to "".

public String getEmailAddress ()

Returns
String The email address used with this address. If omitted, defaults to "".

public String getLocality ()

Returns
String The city, town, etc. If omitted, defaults to "".

public String getName ()

Returns
String Name of the person at this address. If omitted, defaults to "".

public String getPhoneNumber ()

Returns
String The phone number associated to the address. If omitted, defaults to "".

public String getPostalCode ()

Returns
String The postal, zip code, etc. If omitted, defaults to "".

public String getSortingCode ()

Returns
String The sorting code. If omitted, defaults to "".

public boolean isPostBox ()

Returns
boolean Whether the address is a post box or not.

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel
flags int