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 a5b0886fcf874740b1b1fb51f1113d88b8ebe4af..d96977f7c9d86908608526902d3d332bcce96b69 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。 | 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 6016c59263a766d1a45f9ec278002142a5a3d887..a12d1c92a84164660e34ef0308e07d38340c3da7 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 + **参数:** | 参数名 | 类型 | 必填 | 说明 |