SnackbarData

interface SnackbarData

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

Properties

Link copied to clipboard
abstract val actionLabel: String?

optional action label to show as button in the Snackbar

Link copied to clipboard

duration of the snackbar

Link copied to clipboard
abstract val message: String

text to be shown in the Snackbar

Functions

Link copied to clipboard
abstract fun dismiss()

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

Link copied to clipboard
abstract fun performAction()

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