• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ShortcutInfo
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The 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.
10
11> **NOTE**
12>
13> 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.
14>
15> This module is deprecated since API version 9. You are advised to use [bundleManager-ShortcutInfo](js-apis-bundleManager-shortcutInfo.md) instead.
16
17## ShortcutInfo<sup>(deprecated)<sup>
18This API is deprecated since API version 9. You are advised to use [bundleManager-ShortcutInfo](js-apis-bundleManager-shortcutInfo.md#shortcutinfo-1) instead.
19
20**System capability**: SystemCapability.BundleManager.BundleFramework
21
22| Name                   | Type                                      | Read-Only| Optional| Description                        |
23| ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- |
24| id                      | string                                     | Yes  | No  | ID of the application to which the shortcut belongs.    |
25| bundleName              | string                                     | Yes  | No  | Name of the bundle that contains the shortcut.|
26| hostAbility             | string                                     | Yes  | No  | Local ability information of the shortcut.   |
27| icon                    | string                                     | Yes  | No  | Icon of the shortcut.              |
28| iconId<sup>8+</sup>     | number                                     | Yes  | No  | Icon ID of the shortcut.            |
29| label                   | string                                     | Yes  | No  | Name of the shortcut.              |
30| labelId<sup>8+</sup>    | number                                     | Yes  | No  | Name ID of the shortcut.            |
31| disableMessage          | string                                     | Yes  | No  | Message displayed when the shortcut is disabled.          |
32| wants                   | Array&lt;<!--Del-->[<!--DelEnd-->ShortcutWant<!--Del-->](js-apis-bundle-ShortcutInfo-sys.md#shortcutwantdeprecated)<!--DelEnd-->&gt; | Yes  | No  | Want list for the shortcut.        |
33| isStatic                | boolean                                    | Yes  | No  | Whether the shortcut is static. **true** if static, **false** otherwise.         |
34| isHomeShortcut          | boolean                                    | Yes  | No  | Whether the shortcut is a home shortcut. **true** if the shortcut is a home shortcut, **false** otherwise.|
35| isEnabled               | boolean                                    | Yes  | No  | Whether the shortcut is enabled. **true** if enabled, **false** otherwise.            |
36