getDisplayMetrics

fun Context.getDisplayMetrics(): DisplayMetrics

See also

android.view.Display