Callback

Callback class for Snackbar instances.

Note: this class is here to provide backwards-compatible way for apps written before the existence of the base BaseTransientBottomBar class.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Indicates that the Snackbar was dismissed via an action click.
Link copied to clipboard
Indicates that the Snackbar was dismissed from a new Snackbar being shown.
Link copied to clipboard
Indicates that the Snackbar was dismissed via a call to dismiss.
Link copied to clipboard
Indicates that the Snackbar was dismissed via a swipe.
Link copied to clipboard
Indicates that the Snackbar was dismissed via a timeout.

Functions

Link copied to clipboard
open fun onDismissed(transientBottomBar: Snackbar, event: Int)
Called when the given BaseTransientBottomBar has been dismissed, either through a time-out, having been manually dismissed, or an action being clicked.
Link copied to clipboard
open fun onShown(sb: Snackbar)
Called when the given BaseTransientBottomBar is visible.