DisplayMetrics

interface DisplayMetrics

DisplayMetrics interface representing the display metrics of a device. It includes properties to get the dimensions and density of the screen in inches and DPI

Author

Swapnil Musale

Inheritors

AndroidDisplayMetricsImpl

Properties

Link copied to clipboard
abstract val heightInches: Double

heightInches the height of the display in inches

Link copied to clipboard
abstract val widthInches: Double

widthInches the width of the display in inches

Link copied to clipboard
abstract val xDpi: Double

xDpi the screen's horizontal density in dots per inch (DPI)

Link copied to clipboard
abstract val yDpi: Double

yDpi the screen's vertical density in dots per inch (DPI)