NuguSnackbar

class NuguSnackbar(val parentView: View)

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

Parameters

view

is parent view

Constructors

Link copied to clipboard
fun NuguSnackbar(parentView: 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: NuguSnackbar.Callback): NuguSnackbar
Link copied to clipboard
fun duration(duration: Int): NuguSnackbar

How long to display the message

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

Set the message to be displayed

Link copied to clipboard
fun show()

Show the BaseTransientBottomBar.

Properties

Link copied to clipboard
var callback: NuguSnackbar.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 parentView: View
Link copied to clipboard
var resId: Int = 0

The resource id of the string resource to use