RemoteCreationDisplayInfo
Source set: Android
public fun RemoteCreationDisplayInfo(
@IntRange(from = 1) width: Int,
@IntRange(from = 1) height: Int,
@IntRange(from = 1) densityDpi: Int,
@FloatRange(from = 0.0, fromInclusive = false) fontScale: Float = 1.0f,
isInspectionMode: Boolean = false,
densityBehavior: RemoteDensityBehavior = RemoteDensityBehavior.Legacy,
): 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. |
| densityBehavior | The RemoteDensityBehavior to use. Defaults to RemoteDensityBehavior.Legacy. |
Return
A RemoteCreationDisplayInfo object containing the specified display metrics.