未验证 提交 816f7e2d 编写于 作者: Z zengyawen 提交者: Gitee

版本号修改+syscap改造

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 a199462e
# 系统属性
> ![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.
先完成此消息的编辑!
想要评论请 注册