dataChanges
Create a InitialValueFlow of data change events on the Adapter instance.
Note: Created flow keeps a strong reference to the Adapter instance until the coroutine that launched the flow collector is cancelled.
Example of usage:
adapter.dataChanges()
.onEach { adapter ->
// handle data changed
}
.launchIn(uiScope)
Content copied to clipboard