1e41f4b71Sopenharmony_ci# ShortcutInfo (系统接口) 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci应用配置文件中定义的快捷方式信息,可以通过[getShortcutInfo](js-apis-launcherBundleManager-sys.md#launcherbundlemanagergetshortcutinfo9)获取。 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **说明:** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 8e41f4b71Sopenharmony_ci> 9e41f4b71Sopenharmony_ci> FA模型配置在[config.json文件中进行配置](../../quick-start/module-structure.md),Stage模型配置参考[shortcuts对象内部结构](../../quick-start/module-configuration-file.md#shortcuts标签)。 10e41f4b71Sopenharmony_ci> 11e41f4b71Sopenharmony_ci> 本模块为系统接口。 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci## ShortcutWant 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.Launcher 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci| 名称 | 类型 | 只读 | 可选 | 说明 | 20e41f4b71Sopenharmony_ci| ------------------------- | ------ | ---- | ---- | -------------------- | 21e41f4b71Sopenharmony_ci| targetBundle | string | 是 | 否 | 快捷方式的目标bundleName。 | 22e41f4b71Sopenharmony_ci| targetModule | string | 是 | 是 | 快捷方式的目标moduleName。 | 23e41f4b71Sopenharmony_ci| targetAbility | string | 是 | 否 | 快捷方式所需的目标abilityName。 | 24e41f4b71Sopenharmony_ci| parameters<sup>12+</sup> | Array\<[ParameterItem](#parameteritem12)> | 否 | 是 | 快捷方式配置信息中的自定义数据。 | 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci## ShortcutInfo 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.Launcher 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci **系统接口:** 此接口为系统接口。 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci| 名称 | 类型 | 只读 | 可选 | 说明 | 33e41f4b71Sopenharmony_ci| ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- | 34e41f4b71Sopenharmony_ci| id | string | 是 | 否 | 快捷方式所属应用程序的ID。 | 35e41f4b71Sopenharmony_ci| bundleName | string | 是 | 否 | 包含快捷方式的Bundle名称。 | 36e41f4b71Sopenharmony_ci| moduleName | string | 是 | 是 | 快捷方式的模块名。 | 37e41f4b71Sopenharmony_ci| hostAbility | string | 是 | 是 | 快捷方式的本地Ability名称。 | 38e41f4b71Sopenharmony_ci| icon | string | 是 | 是 | 快捷方式的图标。 | 39e41f4b71Sopenharmony_ci| iconId | number | 是 | 是 | 快捷方式的图标ID。 | 40e41f4b71Sopenharmony_ci| label | string | 是 | 是 | 快捷方式的标签。 | 41e41f4b71Sopenharmony_ci| labelId | number | 是 | 是 | 快捷方式的标签ID。 | 42e41f4b71Sopenharmony_ci| wants | Array\<[ShortcutWant](#shortcutwant)> | 是 | 是 | 快捷方式所需要的信息。 | 43e41f4b71Sopenharmony_ci| appIndex<sup>12+</sup> | number | 否 | 否 | 应用程序分身的索引。 | 44e41f4b71Sopenharmony_ci| sourceType<sup>12+</sup> | number | 否 | 否 | 快捷方式来源类型, 0:自定义快捷方式; 1:静态快捷方式。 | 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci## ParameterItem<sup>12+</sup> 47e41f4b71Sopenharmony_ci 48e41f4b71Sopenharmony_ci描述快捷方式配置信息中的自定义数据。 49e41f4b71Sopenharmony_ci 50e41f4b71Sopenharmony_ci **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework.Launcher。 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci| 名称 | 类型 | 只读 | 可选 | 说明 | 53e41f4b71Sopenharmony_ci| ------------- | ------ | ---- | ---------------------- | ---------------------- | 54e41f4b71Sopenharmony_ci| key | string | 否 | 否 | 描述快捷方式配置信息中的自定义数据的键。 | 55e41f4b71Sopenharmony_ci| value | string | 否 | 否 | 描述快捷方式配置信息中的自定义数据的值。 | 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci<!--no_check-->