目录

The JosApps class defines the methods for obtaining the JosAppsClient and AppUpdateClient objects, which are used for game initialization and app update.

Public Method Summary

ReturnMethod
static JosAppsClientgetJosAppsClient(Activity activity, AuthHuaweiId account)
Obtains the JosAppsClient instance for game initialization and game sign-in notice.
static AppUpdateClientgetAppUpdateClient(Context context)
Obtains the AppUpdateClient instance for app update.
static ProductClientgetProductClient(Context context)
Obtains the ProductClient instance for querying the information about missed orders.

Public Methods

public static JosAppsClient getJosAppsClient(Activity activity, AuthHuaweiId account)

Obtains the JosAppsClient instance using the activity.

Input Parameters

Parameter NameParameter Description
activityClient activity.
accountAuthHuaweiId object that is successfully signed in. If no object is signed in, null is returned.

Return Values

Instance of the JosAppsClient type. An app can call methods of JosAppsClient to perform operations such as app initialization.

public static AppUpdateClient getAppUpdateClient(Context context)

Obtains the AppUpdateClient instance using the activity.

Input Parameters

Parameter NameParameter Description
contextClient context.

Return Values

Instance of the AppUpdateClient type. An app can call methods of AppUpdateClient to perform operations such as app update.

public static ProductClient getProductClient(Context context)

Obtains the ProductClient instance for querying the information about missed orders.

Parameters

Parameter NameParameter Description
contextClient context.

Return Values

Obtains the ProductClient instance for querying the information about missed orders.