SnackbarHostState

State of the SnackbarHost.

It allows to show a Snackbar with a message and an optional action.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun showSnackbar(message: String, actionLabel: String? = null, withDismissAction: Boolean = false, duration: SnackbarDuration = SnackbarDuration.Short): SnackbarResult

Shows a Snackbar with the provided message.