| Class Info |
|---|
| public final class JosApps extends Object Provides methods for obtaining the JosAppsClient and AppUpdateClient objects, which are used for app initialization and app update respectively. |
| Qualifier and Type | Method Name and Description |
|---|---|
| static JosAppsClient | getJosAppsClient(Activity activity) Obtains the JosAppsClient instance used for app initialization. CAUTION: Announcements cannot be displayed on Huawei Vision and telematics devices. |
| static JosAppsClient | getJosAppsClient(Activity activity, AuthHuaweiId account) Obtains the JosAppsClient instance used for app initialization. CAUTION: This API is deprecated. You are advised to call the getJosAppsClient(Activity activity) API instead. |
| static AppUpdateClient | getAppUpdateClient(Activity activity) Obtains the AppUpdateClient instance used for app update. |
| static AppUpdateClient | getAppUpdateClient(Context context) Obtains the AppUpdateClient instance used for app update. |
| static ProductClient | getProductClient(Activity activity) Obtains the ProductClient instance for querying the information about missed orders. |
| static ProductClient | getProductClient(Context context) Obtains the ProductClient instance for querying the information about missed orders. CAUTION: This API is deprecated. You are advised to call the getProductClient(Activity activity) API instead. |
| Method |
|---|
| public static JosAppsClient getJosAppsClient(Activity activity) Obtains the JosAppsClient instance using an activity. |
Parameters
| Name | Description |
|---|---|
| activity | Client activity. |
Returns
| Type | Description |
|---|---|
| An instance of the JosAppsClient type. An app can call methods of JosAppsClient to perform operations related to app initialization. |
| Method |
|---|
| public static AppUpdateClient getAppUpdateClient(Activity activity) Obtains the AppUpdateClient instance used for app update. |
Parameters
| Name | Description |
|---|---|
| activity | Client activity. |
Returns
| Type | Description |
|---|---|
| An instance of the AppUpdateClient type. An app can call methods of AppUpdateClient to perform operations related to app update. |
| Method |
|---|
| public static AppUpdateClient getAppUpdateClient(Context context) Obtains the AppUpdateClient instance used for app update. |
Parameters
| Name | Description |
|---|---|
| context | Client context. |
Returns
| Type | Description |
|---|---|
| An instance of the AppUpdateClient type. An app can call methods of AppUpdateClient to perform operations related to app update. |
| Method |
|---|
| public static ProductClient getProductClient(Activity activity) Obtains the ProductClient instance for querying the information about missed orders. |
Parameters
| Name | Description |
|---|---|
| activity | Client activity. |
Returns
| Type | Description |
|---|---|
| An instance of the ProductClient type. An app can call methods of ProductClient to query missed orders. |