harmony 鸿蒙shortcutInfo

2022-10-28 浏览 (777)

shortcutInfo

The shortcutInfo module defines shortcut information configured in the configuration file. For the FA model, the shortcut information is configured in the config.json file. For the stage model, the information is configured in the configuration file under resources/base/profile in the development view.

NOTE

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.

ShortcutWant(deprecated)

This API is deprecated since API version 9. You are advised to use bundleManager-ShortcutWant instead.

System capability: SystemCapability.BundleManager.BundleFramework

System API: This is a system API and cannot be called by third-party applications.

NameTypeReadableWritableDescription
targetBundlestringYesNoTarget bundle of the shortcut.
targetClassstringYesNoTarget class required by the shortcut.

ShortcutInfo(deprecated)

This API is deprecated since API version 9. You are advised to use bundleManager-ShortcutInfo instead.

System capability: SystemCapability.BundleManager.BundleFramework

NameTypeReadableWritableDescription
idstringYesNoID of the application to which the shortcut belongs.
bundleNamestringYesNoName of the bundle that contains the shortcut.
hostAbilitystringYesNoLocal ability information of the shortcut.
iconstringYesNoIcon of the shortcut.
iconId8+numberYesNoIcon ID of the shortcut.
labelstringYesNoName of the shortcut.
labelId8+numberYesNoName ID of the shortcut.
disableMessagestringYesNoMessage displayed when the shortcut is disabled.
wantsArray<ShortcutWant>YesNoWant list for the shortcut.
isStaticbooleanYesNoWhether the shortcut is static.
isHomeShortcutbooleanYesNoWhether the shortcut is a home shortcut.
isEnabledbooleanYesNoWhether the shortcut is enabled.

你可能感兴趣的鸿蒙文章

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/a38b7d233cfb47f1a7dedfd73fab1766