The JosApps class defines the methods for obtaining the JosAppsClient and AppUpdateClient objects, which are used for game initialization and app update.
| Return | Method |
| static JosAppsClient | getJosAppsClient(Activity activity, AuthHuaweiId account) Obtains the JosAppsClient instance for game initialization and game sign-in notice. |
| static AppUpdateClient | getAppUpdateClient(Context context) Obtains the AppUpdateClient instance for app update. |
| static ProductClient | getProductClient(Context context) Obtains the ProductClient instance for querying the information about missed orders. |
Obtains the JosAppsClient instance using the activity.
Input Parameters
| Parameter Name | Parameter Description |
| activity | Client activity. |
| account | AuthHuaweiId 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.
Obtains the AppUpdateClient instance using the activity.
Input Parameters
| Parameter Name | Parameter Description |
| context | Client context. |
Return Values
Instance of the AppUpdateClient type. An app can call methods of AppUpdateClient to perform operations such as app update.
Obtains the ProductClient instance for querying the information about missed orders.
Parameters
| Parameter Name | Parameter Description |
| context | Client context. |
Return Values
Obtains the ProductClient instance for querying the information about missed orders.