[android-components](../index.md) / [mozilla.components.support.ktx.android.view](index.md) / [onNextGlobalLayout](./on-next-global-layout.md)

# onNextGlobalLayout

`inline fun <ERROR CLASS>.onNextGlobalLayout(crossinline callback: () -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/View.kt#L129)

Registers a one-time callback to be invoked when the global layout state
or the visibility of views within the view tree changes.

