sendToast

fun sendToast(context: Context, toast: String?, @IntRange(from = 0.toLong(), to = 1.toLong()toastLength: Int)

Sends a Toast and ensures that any Exception thrown during sending is handled.

Parameters

context

Application context.

toast

toast message.

toastLength

Length of the Toast.