• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RecoverableApplicationInfo (System API)
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The module defines the information about a preinstalled application that can be restored after being uninstalled. The information can be obtained through [bundleManager.getRecoverableApplicationInfo](./js-apis-bundleManager-sys.md#bundlemanagergetrecoverableapplicationinfo11).
10
11> **NOTE**
12>
13> The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version.
14>
15> The APIs provided by this module are system APIs.
16
17## Modules to Import
18
19```ts
20import { bundleManager } from '@kit.AbilityKit';
21```
22
23## RecoverableApplicationInfo
24
25Defines the information about a preinstalled application that can be restored after being uninstalled.
26
27**System API**: This is a system API.
28
29**System capability**: SystemCapability.BundleManager.BundleFramework.Core
30
31| Name            | Type                          | Read-Only| Optional| Description                  |
32| ---------------- | ------------------------------ | ---- | ---- | ---------------------- |
33| bundleName       | string                         | Yes  | No  | Bundle name.      |
34| moduleName       | string                         | Yes  | No  | Module name.|
35| labelId          | number                         | Yes  | No  | ID of the module label.    |
36| iconId           | number                         | Yes  | No  | ID of the module icon.   |
37| systemApp<sup>12+</sup>       | boolean                        | Yes  | No  | Whether the application is a system application. **true** if it is a system application, **false** otherwise. |
38| bundleType<sup>12+</sup>       |[BundleType](js-apis-bundleManager.md#bundletype)             | Yes  | No  | Bundle type.                               |
39| codePaths<sup>12+</sup>        | Array\<string>                 | Yes  | No  | Installation directory of the application.         |
40