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

!1653 display接口资料更新:增加getAllDisplay接口资料

Merge pull request !1653 from youqijing/master
......@@ -70,6 +70,29 @@ getDefaultDisplay(callback: AsyncCallback<Display>): void
});
```
## display.getAllDisplay
getAllDisplay(callback: AsyncCallback<Array<Display>>): void
获取当前所有的display对象。
- 参数
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------------- | ---- | ------------------------------- |
| callback | AsyncCallback<Array<Display>> | 是 | 回调返回当前所有的display对象。 |
- 示例
```
display.getAllDisplay((err, data) => {
if (err) {
console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err));
return;
}
console.info('Succeeded in obtaining all the display objects. Data: ' + JSON.stringify(data))
});
```
## display.on('add'|'remove'|'change')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册