Class

SnackbarResult

Possible results of the SnackbarHostState.showSnackbar call

Source set: Common
public enum class SnackbarResult {
    /** [Snackbar] that is shown has been dismissed either by timeout of by user */
    Dismissed,

    /** Action on the [Snackbar] has been clicked before the time out passed */
    ActionPerformed,
}

Possible results of the SnackbarHostState.showSnackbar call

Members

Dismissed

Source set: Common
Dismissed

Snackbar that is shown has been dismissed either by timeout of by user

ActionPerformed

Source set: Common
ActionPerformed

Action on the Snackbar has been clicked before the time out passed

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: