| name | string | Yes | No | Name of the display. |
| name | string | Yes| No| Name of the display.|
| 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.|
| 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, that is, the number of dots per inch. Generally, the value is **160** or **480**.|
| densityPixels | number | Yes | No | Screen density of the display, in pixels. |
| densityPixels | number | Yes| No| Logical density of the display, which is a scaling coefficient independent of the pixel unit. Generally, the value is **1** or **3**.|
| scaledDensity | number | Yes | No | Scaling factor for fonts displayed on the display. |
| scaledDensity | number | Yes| No| Scaling factor for fonts displayed on the display. Generally, the value is the same as that of **densityPixels**.|
| xDPI | number | Yes | No | Exact physical dots per inch of the screen in the horizontal direction. |
| xDPI | number | Yes| No| Exact physical dots per inch of the screen in the horizontal direction.|
| yDPI | number | Yes | No | Exact physical dots per inch of the screen in the vertical direction. |
| yDPI | number | Yes| No| Exact physical dots per inch of the screen in the vertical direction.|
## display.getDefaultDisplay
## display.getDefaultDisplay
...
@@ -62,9 +62,9 @@ Obtains the default display object. This API uses an asynchronous callback to re
...
@@ -62,9 +62,9 @@ Obtains the default display object. This API uses an asynchronous callback to re
**Parameters**
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback<[Display](#display)> | Yes| Callback used to return the default display object.|
| callback | AsyncCallback<[Display](#display)> | Yes| Callback used to return the default display object.|
**Example**
**Example**
...
@@ -90,9 +90,9 @@ Obtains the default display object. This API uses a promise to return the result
...
@@ -90,9 +90,9 @@ Obtains the default display object. This API uses a promise to return the result