progressChanges

Create a InitialValueFlow of progress changes on the SeekBar instance where the value emitted is the current progress.

Note: Created flow keeps a strong reference to the SeekBar instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

seekBar.progressChanges()
.onEach { progress ->
// handle progress
}
.launchIn(uiScope)