Package-level declarations

Functions

Link copied to clipboard
fun Context.makeToast(text: CharSequence, duration: Int = Toast.LENGTH_SHORT): Toast

Creates a Toast from text.

fun Context.makeToast(@StringRes text: Int, duration: Int = Toast.LENGTH_SHORT): Toast

Creates a Toast from a string resource.

Link copied to clipboard
fun Context.showToast(text: CharSequence, duration: Int = Toast.LENGTH_SHORT)

Shows a short-lived toast with text.

fun Context.showToast(@StringRes text: Int, duration: Int = Toast.LENGTH_SHORT)

Shows a short-lived toast from a string resource.