scrollChangeEvents
Create a Flow of scroll change events on the NestedScrollView instance.
Note: Created flow keeps a strong reference to the NestedScrollView instance until the coroutine that launched the flow collector is cancelled.
Example of usage:
nestedScrollView.scrollChangeEvents()
.onEach { event ->
// handle scroll change event
}
.launchIn(uiScope)
Content copied to clipboard