snackBar

fun View.snackBar(@StringRes text: Int, duration: Int = Snackbar.LENGTH_SHORT): Snackbar

Creates a snack bar and returns it

Return

Snackbar

Parameters

text

Message for this snack bar

duration

Duration before snack bar is dismissed, default Snackbar.LENGTH_SHORT


inline fun View.snackBar(@StringRes text: Int, @StringRes actionText: Int, duration: Int, crossinline action: (Snackbar) -> Unit): Snackbar

Creates a snack bar and returns it

Return

Snackbar

Parameters

text

Message for this snack bar

actionText

Label for the action

duration

Duration before snack bar is dismissed

action

Action delegate