public final class ToastSender
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
sendToast(android.content.Context context,
int toastResourceId,
int toastLength)
Sends a Toast and ensures that any Exception thrown during sending is handled.
|
public static void sendToast(@NonNull android.content.Context context, @StringRes int toastResourceId, int toastLength)
context
- Application context.toastResourceId
- Id of the resource to send as the Toast message.toastLength
- Length of the Toast.