globalLayouts
Create a Flow of global layout events on the View instance.
Note: Created flow keeps a strong reference to the View instance until the coroutine that launched the flow collector is cancelled.
Example of usage:
view.globalLayouts()
.onEach {
// handle global layout
}
.launchIn(uiScope)
Content copied to clipboard