| Promise<Array<[Display](#display)>> | Promise used to return all the display objects.|
| Promise<Array<[Display](#display)>> | Promise used to return all the display objects.|
**Example**
**Example**
...
@@ -195,7 +195,7 @@ promise.then((data) => {
...
@@ -195,7 +195,7 @@ promise.then((data) => {
hasPrivateWindow(displayId: number): boolean
hasPrivateWindow(displayId: number): boolean
Checks whether there is a visible privacy window on a display. The privacy window can be set by calling `[setPrivacyMode](js-apis-window.md#setprivacymode7)`. The content in the privacy window cannot be captured or recorded.
Checks whether there is a visible privacy window on a display. The privacy window can be set by calling [setPrivacyMode](js-apis-window.md#setprivacymode7). The content in the privacy window cannot be captured or recorded.
**System API**: This is a system API.
**System API**: This is a system API.
...
@@ -211,7 +211,7 @@ Checks whether there is a visible privacy window on a display. The privacy windo
...
@@ -211,7 +211,7 @@ Checks whether there is a visible privacy window on a display. The privacy windo
|boolean | Whether there is a visible privacy window on the display.<br>The value `true` means that there is a visible privacy window on the display, and `false` means the opposite.<br>|
|boolean | Whether there is a visible privacy window on the display.<br>The value **true** means that there is a visible privacy window on the display, and **false** means the opposite. |
**Example**
**Example**
...
@@ -271,10 +271,10 @@ Unsubscribes from display changes.
...
@@ -271,10 +271,10 @@ Unsubscribes from display changes.
**Parameters**
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| type | string | Yes| Event type.<br>- **add**, indicating the display addition event.<br>- **remove**, indicating the display removal event.<br>- **change**, indicating the display change event.|
| type | string | Yes| Event type.<br>- **add**, indicating the display addition event.<br>- **remove**, indicating the display removal event.<br>- **change**, indicating the display change event.|
| callback | Callback<number> | No| Callback used to return the ID of the display.|
| callback | Callback<number> | No| Callback used to return the ID of the display.|
**Example**
**Example**
...
@@ -283,9 +283,9 @@ display.off("remove");
...
@@ -283,9 +283,9 @@ display.off("remove");
```
```
## Display
## Display
Implements a `Display` instance, with properties and APIs defined.
Implements a **Display** instance, with properties and APIs defined.
To call an API in the following API examples, you must first use `[getAllDisplay()](#displaygetalldisplay)`, `[getDefaultDisplay()](#displaygetdefaultdisplay)`, or `[getDefaultDisplaySync()](#displaygetdefaultdisplaysync)` to obtain a `Display` instance.
To call an API in the following API examples, you must first use [getAllDisplay()](#displaygetalldisplay), [getDefaultDisplay()](#displaygetdefaultdisplay), or [getDefaultDisplaySync()](#displaygetdefaultdisplaysync) to obtain a **Display** instance.
@@ -296,7 +296,7 @@ To call an API in the following API examples, you must first use `[getAllDisplay
...
@@ -296,7 +296,7 @@ To call an API in the following API examples, you must first use `[getAllDisplay
| alive | boolean | Yes| No| Whether the display is alive.|
| alive | boolean | Yes| No| Whether the display is alive.|
| state | [DisplayState](#displaystate) | Yes| No| State of the display.|
| state | [DisplayState](#displaystate) | Yes| No| State of the display.|
| refreshRate | number | Yes| No| Refresh rate of the display.|
| refreshRate | number | Yes| No| Refresh rate of the display.|
| rotation | number | Yes| No| Screen rotation angle of the display.|
| rotation | number | Yes| No| Screen rotation angle of the display.<br/>The value **0** indicates that the screen of the display rotates by 0°.<br/>The value **1** indicates that the screen of the display rotates by 90°.<br/>The value **2** indicates that the screen of the display rotates by 180°.<br/>The value **3** indicates that the screen of the display rotates by 270°. |
| width | number | Yes| No| Width of the display, in pixels.|
| width | number | Yes| No| Width of the display, in pixels.|
| height | number | Yes| No| Height of the display, in pixels.|
| height | number | Yes| No| Height of the display, in pixels.|
| densityDPI | number | Yes| No| Screen density of the display, in DPI.|
| densityDPI | number | Yes| No| Screen density of the display, in DPI.|
...
@@ -314,7 +314,7 @@ Obtains the cutout information of the display. This API uses an asynchronous cal
...
@@ -314,7 +314,7 @@ Obtains the cutout information of the display. This API uses an asynchronous cal
| callback | AsyncCallback<[CutoutInfo](#cutoutinfo9)> | Yes | Callback used to If the operation is successful, `err` is `undefined` and `data` is the `CutoutInfo` object obtained. Otherwise, `err` is an error object.|
| callback | AsyncCallback<[CutoutInfo](#cutoutinfo9)> | Yes | Callback used to If the operation is successful, **err** is **undefined** and **data** is the **CutoutInfo** object obtained. Otherwise, **err** is an error object. |
**Example**
**Example**
...
@@ -338,7 +338,7 @@ Obtains the cutout information of the display. This API uses a promise to return
...
@@ -338,7 +338,7 @@ Obtains the cutout information of the display. This API uses a promise to return