sendToast

fun sendToast(context: Context, toast: String?, @IntRange(from = 0, to = 1) 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.