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