diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-ability.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-ability.md index 8e6be70a746f74f91a5b4f1fb5778c37f80428ed..b9367b4ce12ae9e48d0dbef5c628e4c0b7400b36 100644 --- a/en/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-ability.md +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-ability.md @@ -1,6 +1,7 @@ # Ability Framework Changelog ## cl.ability.1 AreaMode APIs Changed + Duplicate **AreaMode** APIs are deleted. **Change Impact** @@ -24,8 +25,6 @@ import contextConstant from '@ohos.app.ability.contextConstant'; let area: contextConstant.AreaMode = contextConstant.AreaMode.EL1; ``` - - ## cl.ability.2 killProcessesBySelf Renamed The **killProcessesBySelf** API is renamed **killAllProcesses**. @@ -64,8 +63,6 @@ let appContext = context.getApplicationContext(); appContext.killAllProcesses() ``` - - ## cl.ability.3 getProcessRunningInformation Renamed The **getProcessRunningInformation** API is renamed **getRunningProcessInformation**. @@ -107,9 +104,7 @@ let appContext = context.getApplicationContext(); appContext.getRunningProcessInformation() ``` - - -## cl.ability.4 WantConstant.Flags API Change +## cl.ability.4 WantConstant.Flags API Changed **WantConstant.Flags** has multiple invalid flag definitions. These invalid flags are deleted. @@ -135,9 +130,7 @@ JS APIs in API version 9 are affected. Your application needs to adapt these API | @ohos.app.ability.wantConstant.d.ts | wantConstant.Flags | FLAG_ABILITY_NEW_MISSION | Deleted | | @ohos.app.ability.wantConstant.d.ts | wantConstant.Flags | FLAG_ABILITY_MISSION_TOP | Deleted | - - -## cl.ability.5 WantConstant.Action API Change +## cl.ability.5 WantConstant.Action API Changed **WantConstant.Action** has multiple invalid action definitions. These invalid actions are deleted. @@ -157,8 +150,6 @@ JS APIs in API version 9 are affected. Your application needs to adapt these API | @ohos.app.ability.wantConstant.d.ts | wantConstant.Action | DLP_PARAMS_MODULE_NAME | Deleted | | @ohos.app.ability.wantConstant.d.ts | wantConstant.Action | DLP_PARAMS_ABILITY_NAME | Deleted | - - ## cl.ability.6 Caller APIs Changed Caller APIs use the **Parcelable** and **MessageSequence** objects provided by RPC in API version 9 to replace the deprecated **Sequenceable** and **MessageParcel** object. @@ -266,3 +257,27 @@ Code after the change: } } ``` + +## cl.ability.7 WantConstant.Flags API Changed + +The **wantConstant** API had two similar enums. Now the two enums are combined into one. + +**Change Impact** + +JS APIs in API version 9 are affected. Your application needs to adapt these APIs so that it can properly implement features in the SDK environment of the new version. + +**Key API/Component Changes** + +| Module | Class | Method/Attribute/Enum/Constant | Change Type| +| ----------------------------------- | ---------------------- | ----------------------------------- | -------- | +| @ohos.app.ability.wantConstant.d.ts | wantConstant.Parameter | ABILITY_BACK_TO_OTHER_MISSION_STACK | Deleted | +| @ohos.app.ability.wantConstant.d.ts | wantConstant.Params | ABILITY_BACK_TO_OTHER_MISSION_STACK | Added | + +**Adaptation Guide** + +Use **ABILITY_BACK_TO_OTHER_MISSION_STACK** in **@ohos.app.ability.wantConstant.d.ts**. + +```ts +import wantConstant from '@ohos.app.ability.wantConstant'; +let backToOtherMissionStack: wantConstant.Params = wantParam.Params.ABILITY_BACK_TO_OTHER_MISSION_STACK; +```