RemoteCreationDisplayInfo


Represents the virtual display metrics and configuration used as guide values for rendering a RemoteCompose document.

These values serve as a guide for the predicted characteristics of the remote display, but the actual characteristics may differ when the document is played back on a remote client.

Summary

Public properties

Float

The logical density of the virtual display.

android
RemoteDensityBehavior

The RemoteDensityBehavior to use for interpreting dimension values.

android
Float

The user preference for the scaling factor for fonts, relative to the base density scaling.

android
Int

The height of the virtual display in pixels.

android
Boolean

Whether the capture is happening in an inspection or preview environment (e.g. inside an IDE preview).

android
Int

The width of the virtual display in pixels.

android

Extension properties

Dp

The height of the display in Dp units.

android
Dp

The width of the display in Dp units.

android

Public properties

density

val density: Float

The logical density of the virtual display.

densityBehavior

val densityBehavior: RemoteDensityBehavior

The RemoteDensityBehavior to use for interpreting dimension values.

fontScale

val fontScale: Float

The user preference for the scaling factor for fonts, relative to the base density scaling.

height

val height: Int

The height of the virtual display in pixels.

isInspectionMode

val isInspectionMode: Boolean

Whether the capture is happening in an inspection or preview environment (e.g. inside an IDE preview). Defaults to false.

width

val width: Int

The width of the virtual display in pixels.

Extension properties

RemoteCreationDisplayInfo.heightDp

val RemoteCreationDisplayInfo.heightDp: Dp

The height of the display in Dp units.

RemoteCreationDisplayInfo.widthDp

val RemoteCreationDisplayInfo.widthDp: Dp

The width of the display in Dp units.