layoutChanges
Create a Flow which emits on view layout changes.
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.layoutChanges()
.onEach {
// handle layout changed
}
.launchIn(uiScope)
Content copied to clipboard