UiConfiguration

@Serializable
class UiConfiguration(val darkMode: Boolean = false, val safeAreaInsets: Margin = Margin.Zero, val viewportSize: Size = Size.Zero, val density: Double = 1.0)

Constructors

Link copied to clipboard
constructor(darkMode: Boolean = false, safeAreaInsets: Margin = Margin.Zero, viewportSize: Size = Size.Zero, density: Double = 1.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val darkMode: Boolean = false
Link copied to clipboard
val density: Double = 1.0

The density of the display. This can be used to convert Dp within other properties back to raw pixels, if needed.

Link copied to clipboard
Link copied to clipboard

The size of the viewport into which the composition is rendering. This could be as lage as the entire screen or as small as an individual view within a larger native screen.