showSnackbar

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

Shows a Snackbar with the provided message.

Return

result of the Snackbar

Parameters

message

text to be shown in the Snackbar

actionLabel

optional action label to be shown in the Snackbar

withDismissAction

whether to show a dismiss action in the Snackbar

duration

duration of the Snackbar