SnackbarHostState

State of the SnackbarHost, which controls the queue and the current Snackbar being shown inside the SnackbarHost.

This state is usually remembered and used to provide a SnackbarHost to a com.adevinta.spark.components.scaffold.Scaffold.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun showSnackbar(message: String, actionLabel: String? = null, icon: SparkIcon? = null, title: String? = null, intent: SnackbarIntent = SnackbarDefaults.intent, withDismissAction: Boolean = false, duration: SnackbarDuration = if (actionLabel == null) { SnackbarDuration.Short } else { SnackbarDuration.Indefinite }): SnackbarResult

Shows or queues to be shown a Snackbar at the bottom of the com.adevinta.spark.components.scaffold.Scaffold to which this state is attached and suspends until the snackbar has disappeared.