SnackbarAction

interface SnackbarAction

Represents an action that can be performed in a snack.

Functions

Link copied to clipboard
abstract fun dismiss()

Dismisses the snack. This function is called when the snack needs to be dismissed.

Link copied to clipboard
abstract fun performAction()

This function should be called when the user clicks on the action button in the snack.