• 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
9应用配置文件中定义的快捷方式信息,FA模型配置在[config.json](../../quick-start/application-configuration-file-overview-fa.md)文件中进行配置,Stage模型在开发视图的resources/base/profile下面定义配置文件即可。
10
11> **说明:**
12>
13> 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
14>
15> 从API Version 9开始,该模块不再维护。建议使用[bundleManager-ShortcutInfo](js-apis-bundleManager-shortcutInfo.md)替代。
16
17## ShortcutInfo<sup>(deprecated)<sup>
18> 从API version 9开始不再维护。建议使用[bundleManager-ShortcutInfo](js-apis-bundleManager-shortcutInfo.md#shortcutinfo-1)替代。
19
20**系统能力:** SystemCapability.BundleManager.BundleFramework
21
22| 名称                    | 类型                                       | 只读 | 可选 | 说明                         |
23| ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- |
24| id                      | string                                     | 是   | 否   | 快捷方式所属应用程序的Id。     |
25| bundleName              | string                                     | 是   | 否   | 包含该快捷方式的Bundle名称。 |
26| hostAbility             | string                                     | 是   | 否   | 快捷方式的本地Ability信息。    |
27| icon                    | string                                     | 是   | 否   | 快捷方式的图标。               |
28| iconId<sup>8+</sup>     | number                                     | 是   | 否   | 快捷方式的图标Id。             |
29| label                   | string                                     | 是   | 否   | 快捷方式的名称。               |
30| labelId<sup>8+</sup>    | number                                     | 是   | 否   | 快捷方式的名称Id。             |
31| disableMessage          | string                                     | 是   | 否   | 快捷方式的禁用消息。           |
32| wants                   | Array&lt;<!--Del-->[<!--DelEnd-->ShortcutWant<!--Del-->](js-apis-bundle-ShortcutInfo-sys.md#shortcutwantdeprecated)<!--DelEnd-->&gt; | 是   | 否   | 快捷方式意图列表。         |
33| isStatic                | boolean                                    | 是   | 否   | 快捷方式是否为静态,取值为true表示是静态的快捷方式,取值为false表示不是静态的快捷方式。          |
34| isHomeShortcut          | boolean                                    | 是   | 否   | 快捷方式是否为主页面快捷方式,取值为true表示是主页面快捷方式,取值为false表示不是主页面快捷方式。 |
35| isEnabled               | boolean                                    | 是   | 否   | 是否启用快捷方式,取值为true表示启用快捷方式,取值为false表示停用快捷方式。             |