• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# shortcutInfo (System API)
2
3The **shortcutInfo** module defines shortcut information configured in the configuration file. For the FA model, the shortcut information is configured in the [config.json](../../quick-start/application-configuration-file-overview-fa.md) file. For the stage model, the information is configured in the configuration file under **resources/base/profile** in the development view.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8>
9> The APIs provided by this module are system APIs.
10
11## ShortcutWant<sup>(deprecated)<sup>
12
13> This API is deprecated since API version 9. You are advised to use [bundleManager-ShortcutWant](js-apis-bundleManager-shortcutInfo-sys.md) instead.
14
15**System capability**: SystemCapability.BundleManager.BundleFramework
16
17**System API**: This is a system API and cannot be called by third-party applications.
18
19| Name                     | Type  | Readable| Writable| Description                |
20| ------------------------- | ------ | ---- | ---- | -------------------- |
21| targetBundle              | string | Yes  | No  | Target bundle of the shortcut.|
22| targetClass               | string | Yes  | No  | Target class required by the shortcut.|
23
24## ShortcutInfo<sup>(deprecated)<sup>
25
26> This API is deprecated since API version 9. You are advised to use [bundleManager-ShortcutInfo](js-apis-bundleManager-shortcutInfo-sys.md) instead.
27
28
29**System capability**: SystemCapability.BundleManager.BundleFramework
30
31| Name                   | Type                                      | Readable| Writable| Description                        |
32| ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- |
33| id                      | string                                     | Yes  | No  | ID of the application to which the shortcut belongs.    |
34| bundleName              | string                                     | Yes  | No  | Name of the bundle that contains the shortcut.|
35| hostAbility             | string                                     | Yes  | No  | Local ability information of the shortcut.   |
36| icon                    | string                                     | Yes  | No  | Icon of the shortcut.              |
37| iconId<sup>8+</sup>     | number                                     | Yes  | No  | Icon ID of the shortcut.            |
38| label                   | string                                     | Yes  | No  | Name of the shortcut.              |
39| labelId<sup>8+</sup>    | number                                     | Yes  | No  | Name ID of the shortcut.            |
40| disableMessage          | string                                     | Yes  | No  | Message displayed when the shortcut is disabled.          |
41| wants                   | Array&lt;[ShortcutWant](#shortcutwantdeprecated)&gt; | Yes  | No  | Want list for the shortcut.        |
42| isStatic                | boolean                                    | Yes  | No  | Whether the shortcut is static.          |
43| isHomeShortcut          | boolean                                    | Yes  | No  | Whether the shortcut is a home shortcut.|
44| isEnabled               | boolean                                    | Yes  | No  | Whether the shortcut is enabled.            |
45