class RemoteDensity


Represents the screen density and font scale factor used for unit conversions in a remote composition context. Similar to Compose Density.

Summary

Public companion properties

RemoteDensity

A RemoteDensity instance that represents the host's screen density, with font scale derived from the host's system font size and density settings.

Public constructors

RemoteDensity(density: RemoteFloat, fontScale: RemoteFloat)

Public properties

RemoteFloat

The logical density of the display, used to convert DP to pixels.

RemoteFloat

The current user preference for the scaling factor for fonts.

Public companion properties

Host

Added in 1.0.0-alpha08
val HostRemoteDensity

A RemoteDensity instance that represents the host's screen density, with font scale derived from the host's system font size and density settings.

Public constructors

RemoteDensity

Added in 1.0.0-alpha08
RemoteDensity(density: RemoteFloat, fontScale: RemoteFloat)

Public properties

density

Added in 1.0.0-alpha08
val densityRemoteFloat

The logical density of the display, used to convert DP to pixels.

fontScale

Added in 1.0.0-alpha08
val fontScaleRemoteFloat

The current user preference for the scaling factor for fonts.