From 621f144c749b3e87b4b844e86fe40572bac68b50 Mon Sep 17 00:00:00 2001 From: Gloria Date: Thu, 10 Aug 2023 20:14:09 +0800 Subject: [PATCH] Update docs against 21515+21518 Signed-off-by: wusongqing --- .../reference/apis/js-apis-inner-app-context.md | 12 ++++++------ en/release-notes/Readme.md | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-inner-app-context.md b/en/application-dev/reference/apis/js-apis-inner-app-context.md index 939c4247fb..17a71edfcd 100644 --- a/en/application-dev/reference/apis/js-apis-inner-app-context.md +++ b/en/application-dev/reference/apis/js-apis-inner-app-context.md @@ -495,7 +495,7 @@ Sets the display orientation for this ability. This API uses an asynchronous cal ```ts import featureAbility from '@ohos.ability.featureAbility'; -import bundle from '@ohos.bundle'; +import bundle from '@ohos.bundle.bundleManager'; let context: featureAbility.Context = featureAbility.getContext(); let orientation = bundle.DisplayOrientation.UNSPECIFIED; context.setDisplayOrientation(orientation, (error) => { @@ -522,7 +522,7 @@ Sets the display orientation for this ability. This API uses a promise to return ```ts import featureAbility from '@ohos.ability.featureAbility'; -import bundle from '@ohos.bundle'; +import bundle from '@ohos.bundle.bundleManager'; let context: featureAbility.Context = featureAbility.getContext(); let orientation = bundle.DisplayOrientation.UNSPECIFIED; context.setDisplayOrientation(orientation).then((data) => { @@ -709,7 +709,7 @@ context.getProcessInfo().then((data) => { getElementName(callback: AsyncCallback\): void -Obtains the **ohos.bundle.ElementName** object of this ability. This API uses an asynchronous callback to return the result. +Obtains the **ohos.bundleManager.ElementName** object of this ability. This API uses an asynchronous callback to return the result. This API is available only to Page abilities. @@ -719,7 +719,7 @@ This API is available only to Page abilities. | Name | Type | Mandatory | Description | | -------- | --------------------------- | ---- | -------------------------------------- | -| callback | AsyncCallback\<[ElementName](js-apis-bundleManager-elementName.md)> | Yes | Callback used to return the **ohos.bundle.ElementName** object.| +| callback | AsyncCallback\<[ElementName](js-apis-bundleManager-elementName.md)> | Yes | Callback used to return the **ohos.bundleManager.ElementName** object.| **Example** @@ -741,7 +741,7 @@ context.getElementName((error, data) => { getElementName(): Promise\ -Obtains the **ohos.bundle.ElementName** object of this ability. This API uses a promise to return the result. +Obtains the **ohos.bundleManager.ElementName** object of this ability. This API uses a promise to return the result. This API is available only to Page abilities. @@ -751,7 +751,7 @@ This API is available only to Page abilities. | Type | Description | | --------------------- | ------------------------------------ | -| Promise\<[ElementName](js-apis-bundleManager-elementName.md)> | Promise used to return the **ohos.bundle.ElementName** object.| +| Promise\<[ElementName](js-apis-bundleManager-elementName.md)> | Promise used to return the **ohos.bundleManager.ElementName** object.| **Example** diff --git a/en/release-notes/Readme.md b/en/release-notes/Readme.md index 4a49ce72f7..4097cdcba1 100644 --- a/en/release-notes/Readme.md +++ b/en/release-notes/Readme.md @@ -8,6 +8,7 @@ - [OpenHarmony v3.2 Release (2023-04-09)](OpenHarmony-v3.2-release.md) - [OpenHarmony v3.2.1 Release (2023-05-22)](OpenHarmony-v3.2.1-release.md) + - [OpenHarmony v3.2.2 Release (2023-06-27)](OpenHarmony-v3.2.2-release.md) - [OpenHarmony v3.2 Beta5 (2023-01-31)](OpenHarmony-v3.2-beta5.md) - [OpenHarmony v3.2 Beta4 (2022-11-30)](OpenHarmony-v3.2-beta4.md) - [OpenHarmony v3.2 Beta3 (2022-09-30)](OpenHarmony-v3.2-beta3.md) -- GitLab