layoutChangeEvents
Create a Flow of view layout change 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.layoutChangeEvents()
.onEach { event ->
// handle layout change event
}
.launchIn(uiScope)
Content copied to clipboard