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

!12221 【轻量级 PR】:【仅md格式规范】update zh-cn/application-dev/reference/apis/js-apis-display.md.

Merge pull request !12221 from 葛亚芳/N/A
......@@ -264,7 +264,7 @@ off(type: 'add'|'remove'|'change', callback?: Callback<number>): void
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| type | string | 是 | 监听事件。<br/>- type为"add",表示增加显示设备事件。例如:PC上插入显示器。<br/>- type为"remove",表示移除显示设备事件。例如:PC上移除显示器。<br/>- type为"change",表示改变显示设备事件。例如:显示器方向改变。 |
| type | string | 是 | 监听事件。<br/>- type为"add",表示增加显示设备事件。例如:插入显示器。<br/>- type为"remove",表示移除显示设备事件。例如:移除显示器。<br/>- type为"change",表示改变显示设备事件。例如:显示器方向改变。 |
| callback | Callback&lt;number&gt; | 否 | 回调函数。返回监听到的显示设备的id。 |
**示例:**
......@@ -433,7 +433,7 @@ getCutoutInfo(callback: AsyncCallback&lt;CutoutInfo&gt;): void
| 参数名 | 类型 | 必填 | 说明 |
| ----------- | --------------------------- | ---- | ------------------------------------------------------------ |
| callback | AsyncCallback&lt;[CutoutInfo](#cutoutinfo9)&gt; | 是 | 回调函数。当获取信息成功,err为undefined,data为获取到的CutoutInfo对象;否则err为错误对象。 |
| callback | AsyncCallback&lt;[CutoutInfo](#cutoutinfo9)&gt; | 是 | 回调函数。返回描述不可用屏幕区域的CutoutInfo对象。。 |
**错误码:**
......@@ -472,7 +472,7 @@ getCutoutInfo(): Promise&lt;CutoutInfo&gt;
| 类型 | 说明 |
| ------------------- | ------------------------- |
| Promise&lt;[CutoutInfo](#cutoutinfo9)&gt; | Promise对象返回描述不可用屏幕区域的CutoutInfo对象。 |
| Promise&lt;[CutoutInfo](#cutoutinfo9)&gt; | Promise对象返回描述不可用屏幕区域的CutoutInfo对象。 |
**错误码:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册