用户地址信息,用户选择某地址后返回的数据。
| Return type | Method name |
| UserAddress | parseIntent(Intent data) |
| String | getAddressLine1() |
| String | getAddressLine2() |
| String | getAddressLine3() |
| String | getAddressLine4() |
| String | getAddressLine5() |
| String | getAdministrativeArea() |
| String | getCompanyName() |
| String | getCountryCode() |
| String | getEmailAddress() |
| String | getLocality() |
| String | getName() |
| String | getPhoneNumber() |
| String | getPostalNumber() |
public static UserAddress parseIntent(Intent data)
从Intent对象中解析用户地址数据,在Activity的onActivityResult中调用。
用户在选择地址后,地址结果信息将会携带在intent对象中,通过onActivityResult方法返回,使用parseIntent方法可以从Intent对象中解析出用户选择的地址信息。
| Parameter name | Parameter desc |
| data | 包含用户地址数据的Intent对象 |
public final String getAddressLine1()
返回第一行地址。
| Type | desc |
| String | 第一行地址 |
public final String getAddressLine2()
返回第二行地址。
| type | desc |
| String | 第二行地址 |
public final String getAddressLine3()
返回第三行地址。
| Type | desc |
| String | 第三行地址 |
public final String getAddressLine4()
返回第四行地址。
| Type | desc |
| String | 返回第四行地址 |
public final String getAddressLine5()
返回第五行地址。
| type | desc |
| String | 第五行地址 |
public final String getAdministrativeArea()
返回行政区域名称。
| type | desc |
| String | 行政区域名称 |
public final String getCompanyName()
返回公司名称。
| type | desc |
| String | 公司名称 |
public final String getCountryCode()
返回国家名称。
| type | desc |
| String | 国家名称 |
public final String getEmailAddress()
返回Email地址。
| type | desc |
| String | Email地址 |
public final String getLocality()
返回城市或城镇等信息。
| type | desc |
| String | 城市或城镇等信息 |
返回姓名信息。
| type | desc |
| String | 姓名信息 |
public final String getPhoneNumber()
返回移动电话号码。
| type | desc |
| String | 移动电话号码 |
public final String getPostalNumber()
返回邮政编码。
| type | desc |
| String | 邮政编码 |