From 1ea8daa256c240ae292d118f7fc25e1239bb129d Mon Sep 17 00:00:00 2001 From: zhoujun62 Date: Mon, 9 Jan 2023 20:16:17 +0800 Subject: [PATCH 1/2] add a new flag Signed-off-by: zhoujun62 --- api/@ohos.app.ability.wantConstant.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/api/@ohos.app.ability.wantConstant.d.ts b/api/@ohos.app.ability.wantConstant.d.ts index 2bcb30051a..f9e7ee7912 100644 --- a/api/@ohos.app.ability.wantConstant.d.ts +++ b/api/@ohos.app.ability.wantConstant.d.ts @@ -432,7 +432,15 @@ declare namespace wantConstant { * @syscap SystemCapability.Ability.AbilityBase * @since 9 */ - FLAG_ABILITY_MISSION_TOP = 0x20000000 + FLAG_ABILITY_MISSION_TOP = 0x20000000, + + /** + * Indicates the abiltiy in this want can back to the current top ability even though they are not in the same + * mission stack. + * @syscap SystemCapability.Ability.AbilityBase + * @since 9 + */ + FLAG_ABILITY_BACK_TO_OTHER_MISSION_STACK = 0x40000000 } } -- Gitee From 4638ebd24179c1abf9f493768f3ef3adbaceb210 Mon Sep 17 00:00:00 2001 From: zhoujun62 Date: Thu, 12 Jan 2023 16:15:43 +0800 Subject: [PATCH 2/2] add a parameter key of want Signed-off-by: zhoujun62 --- api/@ohos.app.ability.wantConstant.d.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/api/@ohos.app.ability.wantConstant.d.ts b/api/@ohos.app.ability.wantConstant.d.ts index 31b742a382..81c4425ce0 100644 --- a/api/@ohos.app.ability.wantConstant.d.ts +++ b/api/@ohos.app.ability.wantConstant.d.ts @@ -336,15 +336,23 @@ declare namespace wantConstant { * @since 9 */ FLAG_INSTALL_ON_DEMAND = 0x00000800, + } + /** + * the constant for parameter of the want + * @enum { string } + * @syscap SystemCapability.Ability.AbilityBase + * @since 9 + */ + export enum Parameter { /** - * Indicates the abiltiy in this want can back to the current top ability even though they are not in the same + * Indicates the ability in this want can back to the current top ability even though they are not in the same * mission stack. * @syscap SystemCapability.Ability.AbilityBase * @since 9 */ - FLAG_ABILITY_BACK_TO_OTHER_MISSION_STACK = 0x40000000, + ABILITY_BACK_TO_OTHER_MISSION_STACK = "ability.params.backToOtherMissionStack" } } -export default wantConstant; \ No newline at end of file +export default wantConstant; -- Gitee