SnackbarData

@Stable
interface SnackbarData

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

Properties

Link copied to clipboard
abstract val visuals: SnackbarVisuals

Holds the visual representation for a particular 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.