harmony 鸿蒙shortcutInfo

2022-08-09 浏览 (838)

shortcutInfo

说明: 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

应用配置文件中定义的快捷方式信息,FA模型配置在config.json文件中进行配置,Stage模型在开发视图的resources/base/profile下面定义配置文件即可。

ShortcutWant(deprecated)

从API version 9开始不再维护,建议使用bundleManager-ShortcutWant替代

系统能力: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework

系统API: 此接口为系统接口,三方应用不支持调用

名称类型可读可写说明
targetBundlestring快捷方式的目标捆绑包
targetClassstring快捷方式所需的目标类

ShortcutInfo(deprecated)

从API version 9开始不再维护,建议使用bundleManager-ShortcutInfo替代。

系统能力: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework

名称类型可读可写说明
idstring快捷方式所属应用程序的Id。
bundleNamestring包含该快捷方式的Bundle名称。
hostAbilitystring快捷方式的本地Ability信息。
iconstring快捷方式的图标。
iconId8+number快捷方式的图标Id。
labelstring快捷方式的名称。
labelId8+number快捷方式的名称Id。
disableMessagestring快捷方式的禁用消息。
wantsArray<ShortcutWant>快捷方式意图列表。
isStaticboolean快捷方式是否为静态。
isHomeShortcutboolean快捷方式是否为主页面快捷方式。
isEnabledboolean是否启用快捷方式。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙接口

harmony 鸿蒙系统公共事件定义(待停用)

harmony 鸿蒙系统公共事件定义

harmony 鸿蒙开发说明

harmony 鸿蒙企业设备管理概述(仅对系统应用开放)

harmony 鸿蒙BundleStatusCallback

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

harmony 鸿蒙@ohos.distributedBundle (分布式包管理)

harmony 鸿蒙@ohos.bundle (Bundle模块)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (企业设备管理扩展能力)

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