SnackbarVisuals


Interface to represent the visuals of one particular Snackbar as a piece of the SnackbarData.

Summary

Public properties

String?

optional action label to show as button in the Snackbar

Cmn
SnackbarDuration

duration of the Snackbar

Cmn
String

text to be shown in the Snackbar

Cmn
Boolean

a boolean to show a dismiss action in the Snackbar.

Cmn

Public properties

actionLabel

val actionLabelString?

optional action label to show as button in the Snackbar

duration

val durationSnackbarDuration

duration of the Snackbar

message

val messageString

text to be shown in the Snackbar

withDismissAction

val withDismissActionBoolean

a boolean to show a dismiss action in the Snackbar. This is recommended to be set to true better accessibility when a Snackbar is set with a SnackbarDuration.Indefinite