CustomSnackBar

CustomSnackBar is not a view, it is a wrapper around Snackbar with the purpose of being a single point for customisations.

Usage

To use CustomSnackBar, use show() methods defined in its interface:

fun show(view: View, message: String, snackBarAction: SnackBarAction? = null)
fun show(view: View, message: String, length: Int, snackBarAction: SnackBarAction? = null)
fun showIndefinite(view: View, message: String)
fun hideIndefinite()

You can inject it with Koin:

private val customSnackBar: CustomSnackBar by inject()