# CreationDisplayInfo

Artifact: [androidx.compose.remote:remote-creation-core](https://developer.android.com/jetpack/androidx/releases/compose-remote) [View Source](https://cs.android.com/search?q=file:androidx/compose/remote/creation/CreationDisplayInfo.java+class:androidx.compose.remote.creation.CreationDisplayInfo) Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/compose-remote#1.0.0-alpha23) Android/JVM
- android

  ```
  class CreationDisplayInfo
  ```

*** ** * ** ***

Holds information about the display properties at the time of creation.

This includes the width, height, and density of the display where the remote UI will be rendered. These properties may differ from the properties of the local UI context and may change when the document is played.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/CreationDisplayInfo#CreationDisplayInfo(int,int,int)(width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mDensityDpi: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | android |

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/CreationDisplayInfo#getDensity()()` Returns the logical density of the display. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/CreationDisplayInfo#getDensityDpi()()` Returns the density in DPI. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/CreationDisplayInfo#getHeight()()` Returns the height in pixels of the virtual display. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/CreationDisplayInfo#getWidth()()` Returns the width in pixels of the virtual display. | android |

## Public constructors

### CreationDisplayInfo

android Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/compose-remote#1.0.0-alpha23)

```
CreationDisplayInfo(width: Int, height: Int, mDensityDpi: Int)
```

## Public functions

### getDensity

android Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/compose-remote#1.0.0-alpha23)

```
fun getDensity(): Float
```

Returns the logical density of the display. This is a scaling factor for the Density Independent Pixel unit, where one DIP is one pixel on an approximately 160 dpi screen (for example a 240x320, 1.5"x2" screen), providing the baseline of the system's display. Thus on a 160dpi screen this density value will be 1; on a 120 dpi screen it would be .75; etc.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/CreationDisplayInfo#getDensityDpi()` |   |

### getDensityDpi

android Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/compose-remote#1.0.0-alpha23)

```
fun getDensityDpi(): Int
```

Returns the density in DPI. The calculation is based on a baseline of 160 DPI for a density of 1.0.

### getHeight

android Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/compose-remote#1.0.0-alpha23)

```
fun getHeight(): Int
```

Returns the height in pixels of the virtual display.

### getWidth

android Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/compose-remote#1.0.0-alpha23)

```
fun getWidth(): Int
```

Returns the width in pixels of the virtual display.