core-ktx / androidx.view / android.view.View / doOnPreDraw

doOnPreDraw

inline fun View.doOnPreDraw(crossinline action: (view: View) -> Unit): Unit

Performs the given action when the view tree is about to be drawn.