From dad1b8c996ec6a3f6588d6953d4e45668dc94a0a Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Thu, 25 Aug 2022 19:21:12 +0800 Subject: [PATCH] update docs (8539) Signed-off-by: ester.zhou --- .../reference/apis/js-apis-device-info.md | 7 ++++--- .../reference/apis/js-apis-system-parameter.md | 18 +++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-device-info.md b/en/application-dev/reference/apis/js-apis-device-info.md index c23ee9f6ea..a1e16d5e0b 100644 --- a/en/application-dev/reference/apis/js-apis-device-info.md +++ b/en/application-dev/reference/apis/js-apis-device-info.md @@ -1,6 +1,7 @@ # Device Information -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -11,7 +12,7 @@ import deviceInfo from '@ohos.deviceInfo' ## Attributes -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | @@ -30,7 +31,7 @@ import deviceInfo from '@ohos.deviceInfo' | securityPatchTag | string | Yes| No| Security patch tag.| | displayVersion | string | Yes| No| Product version.| | incrementalVersion | string | Yes| No| Incremental version.| -| osReleaseType | string | Yes| No| OS release type. The options are as follows:
- **Canary**: Preliminary release open only to specific developers. This release does not promise API stability and may require tolerance of instability.
- **Beta**: Release open to all developers. This release does not promise API stability and may require tolerance of instability.
- **Release**: Official release open to all developers. This release promises that all APIs are stable.| +| osReleaseType | string | Yes| No| OS release type. The options are as follows:
- **Canary**: Preliminary release open only to specific developers. This release does not promise API stability and may require tolerance of instability.
- **Beta**: Release open to all developers. This release does not promise API stability and may require tolerance of instability.
- **Release**: Official release open to all developers. This release promises that all APIs are stable.| | osFullName | string | Yes| No| OS version.| | majorVersion | number | Yes| No| Major version, incrementing along with OS version updates.| | seniorVersion | number | Yes| No| Senior version, incrementing along with architecture and feature updates.| diff --git a/en/application-dev/reference/apis/js-apis-system-parameter.md b/en/application-dev/reference/apis/js-apis-system-parameter.md index 999c894303..d969eb7c37 100644 --- a/en/application-dev/reference/apis/js-apis-system-parameter.md +++ b/en/application-dev/reference/apis/js-apis-system-parameter.md @@ -7,7 +7,7 @@ ## Modules to Import ```ts -import parameter from '@ohos.systemParameter' +import parameter from '@ohos.systemparameter' ``` @@ -17,7 +17,7 @@ getSync(key: string, def?: string): string Obtains the value of the attribute with the specified key. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** @@ -50,7 +50,7 @@ get(key: string, callback: AsyncCallback<string>): void Obtains the value of the attribute with the specified key. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** @@ -81,7 +81,7 @@ get(key: string, def: string, callback: AsyncCallback<string>): void Obtains the value of the attribute with the specified key. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** @@ -114,7 +114,7 @@ get(key: string, def?: string): Promise<string> Obtains the value of the attribute with the specified key. This API uses a promise to return the result. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** @@ -151,7 +151,7 @@ setSync(key: string, value: string): void Sets a value for the attribute with the specified key. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** @@ -177,7 +177,7 @@ set(key: string, value: string, callback: AsyncCallback<void>): void Sets a value for the attribute with the specified key. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** @@ -209,14 +209,14 @@ set(key: string, value: string): Promise<void> Sets a value for the attribute with the specified key. This API uses a promise to return the result. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | key | string | Yes| Key of the system attribute.| -| value| string | Yes | System attribute value to set.| +| value| string | Yes| System attribute value to set.| **Return value** -- GitLab