show Snackbar
Shows a snackbar and suspends until it is dismissed or its action is tapped. A second call while one is showing replaces the current snackbar.
Return
whether the action was performed or the snackbar was dismissed.
Parameters
the message to display.
the semantic tone (accent dot); see JengaSnackbarTone.
optional action label.
how long it stays; defaults to JengaSnackbarDuration.Short even with an action, so an Undo never sits on screen indefinitely. Pass JengaSnackbarDuration.Long for a comfortable Undo window, or JengaSnackbarDuration.Indefinite to keep it until acted upon.
Shows a snackbar for exactly durationMillis, or until its action is tapped, and suspends until then.
Return
whether the action was performed or the snackbar was dismissed.
Parameters
the message to display.
how long the snackbar stays, in milliseconds.
the semantic tone (accent dot); see JengaSnackbarTone.
optional action label.