SnackbarData


Interface to represent one particular Snackbar as a piece of the SnackbarHostState

Summary

Public functions

Unit

Function to be called when Snackbar is dismissed either by timeout or by the user

Cmn
Unit

Function to be called when Snackbar action has been performed to notify the listeners

Cmn

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

Public functions

dismiss

fun dismiss(): Unit

Function to be called when Snackbar is dismissed either by timeout or by the user

performAction

fun performAction(): Unit

Function to be called when Snackbar action has been performed to notify the listeners

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