Class

SnackbarDuration

Possible durations of the Snackbar in SnackbarHost

Source set: Common
public enum class SnackbarDuration {
    /** Show the Snackbar for a short period of time */
    Short,

    /** Show the Snackbar for a long period of time */
    Long,

    /** Show the Snackbar indefinitely until explicitly dismissed or action is clicked */
    Indefinite,
}

Possible durations of the Snackbar in SnackbarHost

Members

Short

Source set: Common
Short

Show the Snackbar for a short period of time

Long

Source set: Common
Long

Show the Snackbar for a long period of time

Indefinite

Source set: Common
Indefinite

Show the Snackbar indefinitely until explicitly dismissed or action is clicked

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: