未验证 提交 05e2483b 编写于 作者: O openharmony_ci 提交者: Gitee

!2047 启动恢复 API文档一致性问题修改

Merge pull request !2047 from zengyawen/master
# 设备信息
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
## 导入模块
```
import deviceInfo from '@ohos.deviceInfo'
```
## 系统能力
SystemCapability.Startup.SysInfo
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.Startup.SysInfo。
| 名称 | 参数类型 | 可读 | 可写 | 描述 |
| -------- | -------- | -------- | -------- | -------- |
| deviceType | string | 是 | 否 | 设备类型。 |
......@@ -45,3 +44,4 @@ SystemCapability.Startup.SysInfo
| buildHost | string | 是 | 否 | 构建主机。 |
| buildTime | string | 是 | 否 | 构建时间。 |
| buildRootHash | string | 是 | 否 | 构建版本Hash。 |
| udid<sup>7+</sup> | string | 是 | 否 | 设备Udid。 |
# 系统属性
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> - 此接口为系统接口,三方应用不支持调用。
## 导入模块
```
......@@ -7,17 +11,14 @@ import parameter from '@ohos.systemParameter'
```
## 权限列表
## parameter.getSync
getSync(key: string, def?: string)
获取系统属性Key对应的值。
**系统能力:** SystemCapability.Startup.SysInfo
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
......@@ -49,6 +50,8 @@ get(key: string, callback: AsyncCallback&lt;string&gt;)
获取系统属性Key对应的值。
**系统能力:** SystemCapability.Startup.SysInfo
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
......@@ -78,6 +81,8 @@ get(key: string, def: string, callback: AsyncCallback&lt;string&gt;)
获取系统属性Key对应的值。
**系统能力:** SystemCapability.Startup.SysInfo
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
......@@ -109,6 +114,8 @@ get(key: string, def?: string)
获取系统属性Key对应的值。
**系统能力:** SystemCapability.Startup.SysInfo
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
......@@ -144,6 +151,8 @@ setSync(key: string, value: string)
设置系统属性Key对应的值。
**系统能力:** SystemCapability.Startup.SysInfo
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
......@@ -168,6 +177,8 @@ set(key: string, value: string, callback: AsyncCallback&lt;void&gt;)
设置系统属性Key对应的值。
**系统能力:** SystemCapability.Startup.SysInfo
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
......@@ -198,6 +209,8 @@ set(key: string, def?: string)
设置系统属性Key对应的值。
**系统能力:** SystemCapability.Startup.SysInfo
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册