Google is committed to advancing racial equity for Black communities. See how.

SnackbarDuration

enum class SnackbarDuration
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.material.SnackbarDuration>
   ↳ androidx.compose.material.SnackbarDuration

Possible durations of the Snackbar in SnackbarHost

Summary

Enum values

Show the Snackbar indefinitely until explicitly dismissed or action is clicked

Show the Snackbar for a long period of time

Show the Snackbar for a short period of time

Enum values

Indefinite

enum val Indefinite : SnackbarDuration

Show the Snackbar indefinitely until explicitly dismissed or action is clicked

Long

enum val Long : SnackbarDuration

Show the Snackbar for a long period of time

Short

enum val Short : SnackbarDuration

Show the Snackbar for a short period of time