目录

Address

Class Info

public class Address

Obtains an AddressClient object.

Public Method Summary

Qualifier and Type

Method Name and Description

static AddressClient

getAddressClient(Activity activity)

Obtains an AddressClient object so that APIs defined in AddressClient can be used.

static AddressClient

getAddressClient(Context context)

Obtains an AddressClient object so that APIs defined in AddressClient can be used.

Public Methods

[h2]getAddressClient(Activity activity)

Method

public static AddressClient getAddressClient(Activity activity)

Obtains an AddressClient object so that APIs defined in AddressClient can be used.

If the input parameter is of the Activity type and an exception occurs when the AddressClient object is used to call an API of Identity Kit, the app displays an interactive UI to prompt the user to handle the exception. For example, if the HMS Core (APK) version does not meet the requirement of Identity Kit, the app displays a UI to prompt the user to upgrade HMS Core (APK).

Parameters

Name

Description

activity

Activity object that initiates a request.

Returns

Type

Description

AddressClient

AddressClient object for you to use APIs defined in AddressClient.

[h2]getAddressClient(Context context)

Method

public static AddressClient getAddressClient(Context context)

Obtains an AddressClient object so that APIs defined in AddressClient can be used.

Parameters

Name

Description

context

Context object that initiates a request.

Returns

Type

Description

AddressClient

AddressClient object for you to use APIs defined in AddressClient.