提交 dad1b8c9 编写于 作者: E ester.zhou

update docs (8539)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 5f013b64
# 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.
## 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:<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.|
| 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.|
......
......@@ -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&lt;string&gt;): 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&lt;string&gt;): 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&lt;string&gt;
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&lt;void&gt;): 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&lt;void&gt;
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**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册