From a199462ef5e01a62612eef4b8ae7c6caf567a8f6 Mon Sep 17 00:00:00 2001 From: zengyawen Date: Tue, 15 Mar 2022 03:35:44 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=80=E8=87=B4=E6=80=A7=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E4=BF=AE=E6=94=B9=20Signed-off-by:=20zengyawen=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reference/apis/js-apis-device-info.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-info.md b/zh-cn/application-dev/reference/apis/js-apis-device-info.md index a5b0886fcf8..d96977f7c9d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-device-info.md +++ b/zh-cn/application-dev/reference/apis/js-apis-device-info.md @@ -1,19 +1,18 @@ # 设备信息 +> ![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。 | +| udid7+ | string | 是 | 否 | 设备Udid。 | -- Gitee From 816f7e2d4b3792e4c29d063ca48679259f738625 Mon Sep 17 00:00:00 2001 From: zengyawen Date: Tue, 15 Mar 2022 03:43:09 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9+syscap=E6=94=B9=E9=80=A0=20Signed-off-by:=20zengyawen?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apis/js-apis-system-parameter.md | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md b/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md index 6016c59263a..a12d1c92a84 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md @@ -1,5 +1,9 @@ # 系统属性 +> ![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<string>) 获取系统属性Key对应的值。 +**系统能力:** SystemCapability.Startup.SysInfo + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -78,6 +81,8 @@ get(key: string, def: string, callback: AsyncCallback<string>) 获取系统属性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<void>) 设置系统属性Key对应的值。 +**系统能力:** SystemCapability.Startup.SysInfo + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -198,6 +209,8 @@ set(key: string, def?: string) 设置系统属性Key对应的值。 +**系统能力:** SystemCapability.Startup.SysInfo + **参数:** | 参数名 | 类型 | 必填 | 说明 | -- Gitee