WindowDensityChanged

class WindowDensityChanged(val pixelDensity: Float) : PlatformEvent(source)

Reports that a window's display scale changed, typically because it moved to a display with a different pixel density. pixelDensity is the window's Window.pixelDensity now.

The display scale also covers the system's content scale, so the density can equal the one reported before; compare it with the last known value before acting on it.

Constructors

Link copied to clipboard
constructor(pixelDensity: Float)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String