目录

public interface AddressClient

Obtains user addresses.

Public Method Summary

ReturnMethod
Task<GetUserAddressResult>getUserAddress(UserAddressRequest userAddressReq)

Public Methods

Method
Task< GetUserAddressResult > getUserAddress(UserAddressRequest userAddressReq)
Obtains user address information.
This method can return only the PendingIntent object of the address selection page. The app needs to open the address selection page. For details about how to open the address selection 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
Parameter nameParameter desc
userAddressRequestUserAddressRequest object that contains request information.
Return
typedesc
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 instance object is returned.
You can use OnFailureListener to obtain related information in the failure scenario. In this scenario, an AddressApiException exception object is returned.