---
title: "RemoteCreationDisplayInfo"
description: "Creates a RemoteCreationDisplayInfo instance from width, height, and density metrics."
type: "function"
lastmod: "2026-06-18T10:32:53.055492Z"
---
## API Reference

### RemoteCreationDisplayInfo

> Source set: Android

```kotlin
public fun RemoteCreationDisplayInfo(
    width: Int,
    height: Int,
    densityDpi: Int,
    fontScale: Float = 1.0f,
    isInspectionMode: Boolean = false,
): RemoteCreationDisplayInfo
```

Creates a [RemoteCreationDisplayInfo](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/RemoteCreationDisplayInfo) instance from width, height, and density metrics.

#### Parameters

| | |
| --- | --- |
| width | The width of the display in pixels. |
| height | The height of the display in pixels. |
| densityDpi | The logical densityDpi of the display. |
| fontScale | The user preference for the scaling factor for fonts, relative to the base density scaling. |
| isInspectionMode | Whether the capture is happening in inspection mode (e.g. for a preview). Defaults to false. |

#### Returns

| | |
| --- | --- |
|  | A [RemoteCreationDisplayInfo](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/RemoteCreationDisplayInfo) object containing the specified display metrics. |
