• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# shortcutInfo
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## ShortcutWant<sup>(deprecated)<sup>
10
11> This API is deprecated since API version 9. You are advised to use [bundleManager-ShortcutWant](js-apis-bundleManager-shortcutInfo.md) instead.
12
13**System capability**: SystemCapability.BundleManager.BundleFramework
14
15**System API**: This is a system API and cannot be called by third-party applications.
16
17| Name                     | Type  | Readable| Writable| Description                |
18| ------------------------- | ------ | ---- | ---- | -------------------- |
19| targetBundle              | string | Yes  | No  | Target bundle of the shortcut.|
20| targetClass               | string | Yes  | No  | Target class required by the shortcut.|
21
22## ShortcutInfo<sup>(deprecated)<sup>
23
24> This API is deprecated since API version 9. You are advised to use [bundleManager-ShortcutInfo](js-apis-bundleManager-shortcutInfo.md) instead.
25
26**System capability**: SystemCapability.BundleManager.BundleFramework
27
28| Name                   | Type                                      | Readable| Writable| Description                        |
29| ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- |
30| id                      | string                                     | Yes  | No  | ID of the application to which the shortcut belongs.    |
31| bundleName              | string                                     | Yes  | No  | Name of the bundle that contains the shortcut.|
32| hostAbility             | string                                     | Yes  | No  | Local ability information of the shortcut.   |
33| icon                    | string                                     | Yes  | No  | Icon of the shortcut.              |
34| iconId<sup>8+</sup>     | number                                     | Yes  | No  | Icon ID of the shortcut.            |
35| label                   | string                                     | Yes  | No  | Name of the shortcut.              |
36| labelId<sup>8+</sup>    | number                                     | Yes  | No  | Name ID of the shortcut.            |
37| disableMessage          | string                                     | Yes  | No  | Message displayed when the shortcut is disabled.          |
38| wants                   | Array&lt;[ShortcutWant](#shortcutwant)&gt; | Yes  | No  | Want list for the shortcut.        |
39| isStatic                | boolean                                    | Yes  | No  | Whether the shortcut is static.          |
40| isHomeShortcut          | boolean                                    | Yes  | No  | Whether the shortcut is a home shortcut.|
41| isEnabled               | boolean                                    | Yes  | No  | Whether the shortcut is enabled.            |
42