ui / winkit.android.ui / android.view.View / measure
measure
fun View.measure(callback: (width: Int, height: Int) -> Unit): Unit
Calculate the view sizes adding the a ViewTreeObserver.OnGlobalLayoutListener and removing it after the first occurrence.
Parameters
callback - A function that receive the view’s width and height