• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ShortcutInfo
2
3The **ShortcutInfo** module defines shortcut information configured in the configuration file. The information can be obtained through [getShortcutInfo](js-apis-launcherBundleManager.md#launcherbundlemanagergetshortcutinfo9).
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8>
9> For the FA model, the shortcut information is configured in the [config.json](../../quick-start/module-structure.md#internal-structure-of-the-shortcuts-attribute) file. For details about the shortcut information in the stage model, see [shortcuts](../../quick-start/module-configuration-file.md#shortcuts).
10
11## ShortcutWant
12
13**System capability**: SystemCapability.BundleManager.BundleFramework.Launcher
14
15**System API**: This is a system API.
16
17| Name                     | Type  | Readable| Writable| Description                |
18| ------------------------- | ------ | ---- | ---- | -------------------- |
19| targetBundle              | string | Yes  | No  | Target bundle name of the shortcut.|
20| targetModule              | string | Yes  | No  | Target module name of the shortcut. |
21| targetAbility             | string | Yes  | No  | Target ability name of the shortcut.|
22
23## ShortcutInfo
24
25**System capability**: SystemCapability.BundleManager.BundleFramework.Launcher
26
27**System API**: This is a system API.
28
29| Name                   | Type                                      | Readable| Writable| Description                        |
30| ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- |
31| id                      | string                                     | Yes  | No  | ID of the application to which the shortcut belongs. |
32| bundleName              | string                                     | Yes  | No  | Name of the bundle that contains the shortcut.|
33| moduleName | string                                     | Yes  | No  | Module name of the shortcut.           |
34| hostAbility             | string                                     | Yes  | No  | Local ability name of the shortcut.  |
35| icon                    | string                                     | Yes  | No  | Icon of the shortcut.            |
36| iconId     | number                                     | Yes  | No  | ID of the shortcut icon.          |
37| label                   | string                                     | Yes  | No  | Label of the shortcut.             |
38| labelId    | number                                     | Yes  | No  | ID of the shortcut label.          |
39| wants                   | Array\<[ShortcutWant](#shortcutwant)> | Yes  | No  | Want information required for the shortcut.       |
40
41
42