Skip to content

Event listener & Swipe-to-Dismiss enabling/disabling

Compare
Choose a tag to compare
@wmora wmora released this 25 Oct 15:00
· 316 commits to master since this release

The previous DismissListener has been changed to EventListener. This listener now notifies whenever the Snackbar is about to enter the screen and when it dismisses.

The Snackbar used on Google's Inbox app is not swipeable, but since the Material Design Guidelines says that a Snackbar can be swiped, this functionality may now be disabled with swipeToDismiss(false).

See the README file for the updated documentation.