提交 621f144c 编写于 作者: G Gloria

Update docs against 21515+21518

Signed-off-by: wusongqing<wusongqing@huawei.com>
上级 bae87b24
...@@ -495,7 +495,7 @@ Sets the display orientation for this ability. This API uses an asynchronous cal ...@@ -495,7 +495,7 @@ Sets the display orientation for this ability. This API uses an asynchronous cal
```ts ```ts
import featureAbility from '@ohos.ability.featureAbility'; import featureAbility from '@ohos.ability.featureAbility';
import bundle from '@ohos.bundle'; import bundle from '@ohos.bundle.bundleManager';
let context: featureAbility.Context = featureAbility.getContext(); let context: featureAbility.Context = featureAbility.getContext();
let orientation = bundle.DisplayOrientation.UNSPECIFIED; let orientation = bundle.DisplayOrientation.UNSPECIFIED;
context.setDisplayOrientation(orientation, (error) => { context.setDisplayOrientation(orientation, (error) => {
...@@ -522,7 +522,7 @@ Sets the display orientation for this ability. This API uses a promise to return ...@@ -522,7 +522,7 @@ Sets the display orientation for this ability. This API uses a promise to return
```ts ```ts
import featureAbility from '@ohos.ability.featureAbility'; import featureAbility from '@ohos.ability.featureAbility';
import bundle from '@ohos.bundle'; import bundle from '@ohos.bundle.bundleManager';
let context: featureAbility.Context = featureAbility.getContext(); let context: featureAbility.Context = featureAbility.getContext();
let orientation = bundle.DisplayOrientation.UNSPECIFIED; let orientation = bundle.DisplayOrientation.UNSPECIFIED;
context.setDisplayOrientation(orientation).then((data) => { context.setDisplayOrientation(orientation).then((data) => {
...@@ -709,7 +709,7 @@ context.getProcessInfo().then((data) => { ...@@ -709,7 +709,7 @@ context.getProcessInfo().then((data) => {
getElementName(callback: AsyncCallback\<ElementName>): void getElementName(callback: AsyncCallback\<ElementName>): 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. This API is available only to Page abilities.
...@@ -719,7 +719,7 @@ This API is available only to Page abilities. ...@@ -719,7 +719,7 @@ This API is available only to Page abilities.
| Name | Type | Mandatory | Description | | 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** **Example**
...@@ -741,7 +741,7 @@ context.getElementName((error, data) => { ...@@ -741,7 +741,7 @@ context.getElementName((error, data) => {
getElementName(): Promise\<ElementName> getElementName(): Promise\<ElementName>
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. This API is available only to Page abilities.
...@@ -751,7 +751,7 @@ This API is available only to Page abilities. ...@@ -751,7 +751,7 @@ This API is available only to Page abilities.
| Type | Description | | 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** **Example**
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
- [OpenHarmony v3.2 Release (2023-04-09)](OpenHarmony-v3.2-release.md) - [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.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 Beta5 (2023-01-31)](OpenHarmony-v3.2-beta5.md)
- [OpenHarmony v3.2 Beta4 (2022-11-30)](OpenHarmony-v3.2-beta4.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) - [OpenHarmony v3.2 Beta3 (2022-09-30)](OpenHarmony-v3.2-beta3.md)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册