已合并
softlist-interface-abilityconst #33354
softlist-interface-abilityconst #33354
已合并
wangzhengji创建于 5月30日
1 个文件变更+11-1
@@ -40,10 +40,20 @@ declare namespace AbilityConstant {
40 * @stagemodelonly40 * @stagemodelonly
41 * @atomicservice41 * @atomicservice
42 * @since 20 dynamic42 * @since 20 dynamic
43- * @since 23 static
44 */43 */
45 const REASON_MESSAGE_DESKTOP_SHORTCUT = 'ReasonMessage_DesktopShortcut';44 const REASON_MESSAGE_DESKTOP_SHORTCUT = 'ReasonMessage_DesktopShortcut';
46 45 
46+ /**
47+ * The UIAbility is launched via a home screen shortcut. If this string is obtained from the **launchReasonMessage**
48+ * property in [LaunchParam]{@link AbilityConstant.LaunchParam}, the UIAbility is initiated by touching a shortcut on
49+ * the home screen.
50+ *
51+ * @syscap SystemCapability.Ability.AbilityBase
52+ * @stagemodelonly
53+ * @since 23 static
54+ */
55+ const REASON_MESSAGE_DESKTOP_SHORTCUT: string;
56+ 
47 /**57 /**
48 * Describes the launch parameters, which mainly include the ability launch reasons and reasons for the last exit. The58 * Describes the launch parameters, which mainly include the ability launch reasons and reasons for the last exit. The
49 * parameter values are automatically passed in by the system when the ability is launched. You do not need to change59 * parameter values are automatically passed in by the system when the ability is launched. You do not need to change