Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HUAWEI HMS Core
Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.
Returns data about the selected user address.
| 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)
Parses user address data from Intent. 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.
| Parameter name | Parameter desc |
| data | Intent object that contains user address data. |
public final String getAddressLine1()
Obtains the address in the first line.
| Type | desc |
| String | Address in the first line. |
public final String getAddressLine2()
Obtains the address in the second line.
| type | desc |
| String | Address in the second line. |
public final String getAddressLine3()
Obtains the address in the third line.
| Type | desc |
| String | Address in the third line. |
public final String getAddressLine4()
Obtains the address in the fourth line.
| Type | desc |
| String | Address in the fourth line. |
public final String getAddressLine5()
Obtains the address in the fifth line.
| type | desc |
| String | Address in the fifth line. |
public final String getAdministrativeArea()
Obtains the administrative area name.
| type | desc |
| String | Administrative area name. |
public final String getCompanyName()
Obtains the company name.
| type | desc |
| String | Company name. |
public final String getCountryCode()
Obtains the country name.
| type | desc |
| String | Country name. |
public final String getEmailAddress()
Obtains the email address.
| type | desc |
| String | Email address. |
public final String getLocality()
Obtains the city or country information.
| type | desc |
| String | City name. |
Obtains the name.
| type | desc |
| String | Name. |
public final String getPhoneNumber()
Obtains the mobile number.
| type | desc |
| String | Mobile number. |
public final String getPostalNumber()
Obtains the postal code.
| type | desc |
| String | Postal code. |
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.