harmony 鸿蒙ShortcutInfo
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.
The APIs of this module are deprecated since API version 9. The substitute APIs are open only to system applications. You are advised to use bundleManager-ShortcutInfo instead.
ShortcutInfo(deprecated)
The APIs of this module are deprecated since API version 9. The substitute APIs are open only to system applications. You are advised to use bundleManager-ShortcutInfo instead.
System capability: SystemCapability.BundleManager.BundleFramework
Name | Type | Read-Only | Optional | Description |
---|---|---|---|---|
id | string | Yes | No | ID of the application to which the shortcut belongs. |
bundleName | string | Yes | No | Name of the bundle that contains the shortcut. |
hostAbility | string | Yes | No | Local ability information of the shortcut. |
icon | string | Yes | No | Icon of the shortcut. |
iconId8+ | number | Yes | No | Icon ID of the shortcut. |
label | string | Yes | No | Name of the shortcut. |
labelId8+ | number | Yes | No | Name ID of the shortcut. |
disableMessage | string | Yes | No | Message displayed when the shortcut is disabled. |
wants | Array<ShortcutWant> | Yes | No | Want list for the shortcut. |
isStatic | boolean | Yes | No | Whether the shortcut is static. The value true means that the shortcut is static, and false means the opposite. |
isHomeShortcut | boolean | Yes | No | Whether the shortcut is a home shortcut. The value true means that the shortcut is a home shortcut, and false means the opposite. |
isEnabled | boolean | Yes | No | Whether the shortcut is enabled. The value true means that the shortcut is enabled., and false means the opposite. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙AbilityAccessControl
harmony 鸿蒙OH_NativeBundle_ApplicationInfo
harmony 鸿蒙OH_NativeBundle_ElementName
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦