abstract fun getDensity(): Int
The device's screen density in dots-per-inch (dpi).
uint32 density = 18;
Return Int: The density.