Class Info |
|---|
public final class UserAddress Address information returned after a user selects an address. |
Qualifier and Type | Method Name and Description |
|---|---|
UserAddress | parseIntent(Intent data) Parses the address selected by a user from an Intent object. |
String | Obtains the address in the first line. If it is omitted, use "" by default. |
String | Obtains the address in the second line. If it is omitted, use "" by default. |
String | Obtains the address in the third line. If it is omitted, use "" by default. |
String | Obtains the address in the fourth line. If it is omitted, use "" by default. |
String | Obtains the address in the fifth line. If it is omitted, use "" by default. |
String | Obtains the administrative area name. If it is omitted, use "" by default. |
String | Obtains the company name. If it is omitted, use "" by default. |
String | Obtains the country/region name. If it is omitted, use "" by default. |
String | Obtains the country/region code. If it is omitted, use "" by default. |
String | Obtains the email address. If it is omitted, use "" by default. |
String | Obtains the city or county information. If it is omitted, use "" by default. |
String | getName() Obtains the name. If it is omitted, use "" by default. |
String | Obtains the mobile number. If it is omitted, use "" by default. |
String | Obtains the postal code. If it is omitted, use "" by default. |
Method |
|---|
public static UserAddress parseIntent(Intent data) Parses user address data from an Intent object. This method is called in onActivityResult of Activity. After a user selects an address, the selected address is carried in the intent object and returned through the onActivityResult method. You can use the parseIntent method to parse the selected address from the Intent object. |
Parameters
Name | Description |
|---|---|
data | Intent object that contains user address data. |
Returns
Type | Description |
|---|---|
UserAddress | Address information returned after a user selects an address. |
Method |
|---|
public final String getAddressLine1() Obtains the address in the first line. |
Returns
Type | Description |
|---|---|
String | Address in the first line. If it is omitted, use "" by default. |
Method |
|---|
public final String getAddressLine2() Obtains the address in the second line. |
Returns
Type | Description |
|---|---|
String | Address in the second line. If it is omitted, use "" by default. |
Method |
|---|
public final String getAddressLine3() Obtains the address in the third line. |
Returns
Type | Description |
|---|---|
String | Address in the third line. If it is omitted, use "" by default. |
Method |
|---|
public final String getAddressLine4() Obtains the address in the fourth line. |
Returns
Type | Description |
|---|---|
String | Address in the fourth line. If it is omitted, use "" by default. |
Method |
|---|
public final String getAddressLine5() Obtains the address in the fifth line. |
Returns
Type | Description |
|---|---|
String | Address in the fifth line. If it is omitted, use "" by default. |
Method |
|---|
public final String getAdministrativeArea() Obtains the administrative area name. |
Returns
Type | Description |
|---|---|
String | Administrative area name. If it is omitted, use "" by default. |
Method |
|---|
public final String getCompanyName() Obtains the company name. |
Returns
Type | Description |
|---|---|
String | Company name. If it is omitted, use "" by default. |
Method |
|---|
public final String getCountryCode() Obtains the country/region name. |
Returns
Type | Description |
|---|---|
String | Country/Region name. If it is omitted, use "" by default. |
Method |
|---|
public final String getCountryISOCode() Obtains the country/region code. |
Returns
Type | Description |
|---|---|
String | Country/Region code. The value must comply with ISO 3166 standards, for example, US, CN, and MY. If it is omitted, use "" by default. |
Method |
|---|
public final String getEmailAddress() Obtains the email address. |
Returns
Type | Description |
|---|---|
String | Email address. If it is omitted, use "" by default. |
Method |
|---|
public final String getLocality() Obtains the city or county information. |
Returns
Type | Description |
|---|---|
String | City or county information. If it is omitted, use "" by default. |
Method |
|---|
public final String getName() Obtains the name. |
Returns
Type | Description |
|---|---|
String | Name. If it is omitted, use "" by default. |