未验证 提交 50ef36c3 编写于 作者: O openharmony_ci 提交者: Gitee

!8673 翻译完成 8539:js-apis-device-info.md 、js-apis-system-parameter.md

Merge pull request !8673 from ester.zhou/TR-8539
# Device Information # Device Information
> **NOTE**<br> > **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. > 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 ## Modules to Import
...@@ -11,7 +12,7 @@ import deviceInfo from '@ohos.deviceInfo' ...@@ -11,7 +12,7 @@ import deviceInfo from '@ohos.deviceInfo'
## Attributes ## Attributes
**System capability**: SystemCapability.Startup.SysInfo **System capability**: SystemCapability.Startup.SystemInfo
| Name| Type| Readable| Writable| Description| | Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
...@@ -30,7 +31,7 @@ import deviceInfo from '@ohos.deviceInfo' ...@@ -30,7 +31,7 @@ import deviceInfo from '@ohos.deviceInfo'
| securityPatchTag | string | Yes| No| Security patch tag.| | securityPatchTag | string | Yes| No| Security patch tag.|
| displayVersion | string | Yes| No| Product version.| | displayVersion | string | Yes| No| Product version.|
| incrementalVersion | string | Yes| No| Incremental version.| | incrementalVersion | string | Yes| No| Incremental version.|
| osReleaseType | string | Yes| No| OS release type. The options are as follows:<br>-&nbsp;**Canary**: Preliminary release open only to specific developers. This release does not promise API stability and may require tolerance of instability.<br>-&nbsp;**Beta**: Release open to all developers. This release does not promise API stability and may require tolerance of instability.<br>-&nbsp;**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:<br>- **Canary**: Preliminary release open only to specific developers. This release does not promise API stability and may require tolerance of instability.<br>- **Beta**: Release open to all developers. This release does not promise API stability and may require tolerance of instability.<br>- **Release**: Official release open to all developers. This release promises that all APIs are stable.|
| osFullName | string | Yes| No| OS version.| | osFullName | string | Yes| No| OS version.|
| majorVersion | number | Yes| No| Major version, incrementing along with OS version updates.| | 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.| | seniorVersion | number | Yes| No| Senior version, incrementing along with architecture and feature updates.|
......
...@@ -17,7 +17,7 @@ getSync(key: string, def?: string): string ...@@ -17,7 +17,7 @@ getSync(key: string, def?: string): string
Obtains the value of the attribute with the specified key. Obtains the value of the attribute with the specified key.
**System capability**: SystemCapability.Startup.SysInfo **System capability**: SystemCapability.Startup.SystemInfo
**Parameters** **Parameters**
...@@ -50,7 +50,7 @@ get(key: string, callback: AsyncCallback&lt;string&gt;): void ...@@ -50,7 +50,7 @@ get(key: string, callback: AsyncCallback&lt;string&gt;): void
Obtains the value of the attribute with the specified key. This API uses an asynchronous callback to return the result. 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** **Parameters**
...@@ -81,7 +81,7 @@ get(key: string, def: string, callback: AsyncCallback&lt;string&gt;): void ...@@ -81,7 +81,7 @@ get(key: string, def: string, callback: AsyncCallback&lt;string&gt;): void
Obtains the value of the attribute with the specified key. This API uses an asynchronous callback to return the result. 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** **Parameters**
...@@ -114,7 +114,7 @@ get(key: string, def?: string): Promise&lt;string&gt; ...@@ -114,7 +114,7 @@ get(key: string, def?: string): Promise&lt;string&gt;
Obtains the value of the attribute with the specified key. This API uses a promise to return the result. 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** **Parameters**
...@@ -151,7 +151,7 @@ setSync(key: string, value: string): void ...@@ -151,7 +151,7 @@ setSync(key: string, value: string): void
Sets a value for the attribute with the specified key. Sets a value for the attribute with the specified key.
**System capability**: SystemCapability.Startup.SysInfo **System capability**: SystemCapability.Startup.SystemInfo
**Parameters** **Parameters**
...@@ -177,7 +177,7 @@ set(key: string, value: string, callback: AsyncCallback&lt;void&gt;): void ...@@ -177,7 +177,7 @@ set(key: string, value: string, callback: AsyncCallback&lt;void&gt;): void
Sets a value for the attribute with the specified key. This API uses an asynchronous callback to return the result. 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** **Parameters**
...@@ -209,7 +209,7 @@ set(key: string, value: string): Promise&lt;void&gt; ...@@ -209,7 +209,7 @@ set(key: string, value: string): Promise&lt;void&gt;
Sets a value for the attribute with the specified key. This API uses a promise to return the result. 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** **Parameters**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册