Snackbar

class Snackbar(val fab: View)

Wrapper class to customise android.support.design.widget.Snackbar

Parameters

fab

is parent view

Constructors

Link copied to clipboard
fun Snackbar(fab: View)

Types

Link copied to clipboard
abstract class Callback

Callback class for Snackbar instances

Link copied to clipboard
object Companion

Companion objects

Functions

Link copied to clipboard
fun callback(callback: Snackbar.Callback): Snackbar
Link copied to clipboard
fun duration(duration: Int): Snackbar

How long to display the message

Link copied to clipboard
fun message(resId: Int): Snackbar

Set the message to be displayed

Link copied to clipboard
fun show()

Show the BaseTransientBottomBar.

Properties

Link copied to clipboard
var callback: Snackbar.Callback? = null

callback to be invoked when the action is onDismissed

Link copied to clipboard
var duration: Int

How long to display the message. Either LENGTH_SHORT or LENGTH_LONG

Link copied to clipboard
val fab: View
Link copied to clipboard
var resId: Int = 0

The resource id of the string resource to use