RemoteCreationDisplayInfo
Source set: Android
public fun RemoteCreationDisplayInfo(
width: Int,
height: Int,
densityDpi: Int,
fontScale: Float = 1.0f,
isInspectionMode: Boolean = false,
): RemoteCreationDisplayInfo
Creates a 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 object containing the specified display metrics. |