shownEvents

fun Snackbar.shownEvents(): Flow<Unit>

Create a Flow of shown events on the Snackbar instance.

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

Example of usage:

snackbar.shownEvents()
.onEach {
// handle shown event
}
.launchIn(uiScope)