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

!16429 deviceInfo断链和syscap样式修改

Merge pull request !16429 from zengyawen/master
...@@ -20,7 +20,7 @@ getInfo(options?: GetDeviceOptions): void ...@@ -20,7 +20,7 @@ getInfo(options?: GetDeviceOptions): void
获取当前设备的信息。 获取当前设备的信息。
> **说明:** > **说明:**<br>
> 在首页的onShow生命周期之前不建议调用device.getInfo接口。 > 在首页的onShow生命周期之前不建议调用device.getInfo接口。
**系统能力:** SystemCapability.Startup.SystemInfo **系统能力:** SystemCapability.Startup.SystemInfo
...@@ -35,11 +35,11 @@ getInfo(options?: GetDeviceOptions): void ...@@ -35,11 +35,11 @@ getInfo(options?: GetDeviceOptions): void
定义设备信息获取的参数选项。 定义设备信息获取的参数选项。
**系统能力: ** SystemCapability.Startup.SystemInfo **系统能力:** SystemCapability.Startup.SystemInfo
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| success | (data:DeviceResponse)=> void | 否 | 接口调用成功的回调函数。 data为成功返回的设备信息,具体参考[DeviceResponse]。| | success | (data:DeviceResponse)=> void | 否 | 接口调用成功的回调函数。 data为成功返回的设备信息,具体参考[DeviceResponse](#deviceresponse)。|
| fail | (data:any,code:number)=> void | 否 | 接口调用失败的回调函数。 code为失败返回的错误码。<br>code:200,表示返回结果中存在无法获得的信息。| | fail | (data:any,code:number)=> void | 否 | 接口调用失败的回调函数。 code为失败返回的错误码。<br>code:200,表示返回结果中存在无法获得的信息。|
| complete | ()=> void | 否 | 接口调用结束的回调函数。 | | complete | ()=> void | 否 | 接口调用结束的回调函数。 |
...@@ -47,7 +47,7 @@ getInfo(options?: GetDeviceOptions): void ...@@ -47,7 +47,7 @@ getInfo(options?: GetDeviceOptions): void
设备信息。 设备信息。
##系统能力:** SystemCapability.Startup.SystemInfo **系统能力:** SystemCapability.Startup.SystemInfo
| 名称 | 类型 | 说明 | | 名称 | 类型 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册