preferenceClicks
Create a Flow of click events on the Preference instance.
Note: Created flow keeps a strong reference to the Preference instance until the coroutine that launched the flow collector is cancelled.
Example of usage:
preference.preferenceClicks()
.onEach {
// handle preference click event
}
.launchIn(uiScope)
Content copied to clipboard