NuguToast

class NuguToast(val context: Context)

Wrapper class to customise android.widget.Toast

Parameters

view

is parent view

Constructors

Link copied to clipboard
fun NuguToast(context: Context)

Types

Link copied to clipboard
object Companion

Companion objects

Functions

Link copied to clipboard
fun duration(duration: Int): NuguToast

Set how long to show the view for.

Link copied to clipboard
fun message(resId: Int): NuguToast
fun message(message: String): NuguToast

Set the message to be displayed

Link copied to clipboard
fun show()

Show the toast.

Link copied to clipboard
fun yOffset(yOffset: Int): NuguToast

Set the Y offset in pixels to apply to the gravity's location.

Properties

Link copied to clipboard
val context: Context
Link copied to clipboard
var duration: Int

How long to display the message. Either LENGTH_SHORT or LENGTH_LONG

Link copied to clipboard
var message: String

The resource id of the string resource to use

Link copied to clipboard
var yOffset: Int = 0