目录

AddressClient

Interface Info

public interface AddressClient

User address class.

Public Method Summary

Qualifier and Type

Method Name and Description

Task<GetUserAddressResult>

getUserAddress(UserAddressRequest userAddressReq)

Obtains user address information.

Public Methods

[h2]getUserAddress

Method

Task<GetUserAddressResult> getUserAdddress(UserAddressRequest userAddressReq)

Obtains user address information.

This method can return the PendingIntent object of the address selection page. The app needs to open the address selection page. For details about how to open the page, please refer to the description of status in GetUserAddressResult. After the user selects an address, the app can use the onActivityResult callback method to obtain the address information through parseIntent.

Parameters

Name

Description

userAddressReq

UserAddressRequest object that contains request information.

Returns

Type

Description

Task<GetUserAddressResult>

Task containing the API request result.

You can use OnSuccessListener to obtain the data returned in the success scenario. In this scenario, a GetUserAddressResult object is returned.

You can use OnFailureListener to obtain related information in the failure scenario. In this scenario, an AddressApiException object is returned.