harmony 鸿蒙ShortcutInfo

2022-12-05 浏览 (882)

ShortcutInfo

The ShortcutInfo module defines shortcut information configured in the configuration file. The information can be obtained through getShortcutInfo.

NOTE

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.

For the FA model, the shortcut information is configured in the config.json file. For details about the shortcut information in the stage model, see shortcuts.

ShortcutWant

System capability: SystemCapability.BundleManager.BundleFramework.Launcher

System API: This is a system API.

NameTypeReadableWritableDescription
targetBundlestringYesNoTarget bundle name of the shortcut.
targetModulestringYesNoTarget module name of the shortcut.
targetAbilitystringYesNoTarget ability name of the shortcut.

ShortcutInfo

System capability: SystemCapability.BundleManager.BundleFramework.Launcher

System API: This is a system API.

NameTypeReadableWritableDescription
idstringYesNoID of the application to which the shortcut belongs.
bundleNamestringYesNoName of the bundle that contains the shortcut.
moduleNamestringYesNoModule name of the shortcut.
hostAbilitystringYesNoLocal ability name of the shortcut.
iconstringYesNoIcon of the shortcut.
iconIdnumberYesNoID of the shortcut icon.
labelstringYesNoLabel of the shortcut.
labelIdnumberYesNoID of the shortcut label.
wantsArray<ShortcutWant>YesNoWant information required for the shortcut.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙APIs

harmony 鸿蒙System Common Events (To Be Deprecated Soon)

harmony 鸿蒙System Common Events

harmony 鸿蒙API Reference Document Description

harmony 鸿蒙Enterprise Device Management Overview (for System Applications Only)

harmony 鸿蒙BundleStatusCallback

harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager)

harmony 鸿蒙@ohos.distributedBundle (Distributed Bundle Management)

harmony 鸿蒙@ohos.bundle (Bundle)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/7aa3db2ad1304183a37d063e47d044fa