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