SnackbarData
-
Cmn
interface SnackbarData
Interface to represent one particular Snackbar as a piece of the SnackbarHostState
Summary
Public functions |
||
|---|---|---|
Unit |
dismiss()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 |
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