longClicks
Create a Flow of long click 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.longClicks()
.onEach {
// handle view long clicked
}
.launchIn(uiScope)
Content copied to clipboard