ShortcutInfo

The module defines shortcut information configured in the configuration file. For the FA model, the 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 have been deprecated since API version 9. You are advised to use bundleManager-ShortcutInfo instead.

ShortcutInfo(deprecated)

NOTE

This API has been supported since API version 7 and deprecated since API version 9. 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 Yes Whether the shortcut is static. true if static, false otherwise.
isHomeShortcut boolean Yes Yes Whether the shortcut is a home shortcut. true if the shortcut is a home shortcut, false otherwise.
isEnabled boolean Yes Yes Whether the shortcut is enabled. true if enabled, false otherwise.