Back to Acra

ToastSender (acra 4.11 API)

web/static/javadoc/4.11/org/acra/util/ToastSender.html

latest2.6 KB
Original Source

Skip navigation links

org.acra.util

Class ToastSender

  • java.lang.Object

    • org.acra.util.ToastSender

public final classToastSenderextends java.lang.Object

Responsible for sending Toasts under all circumstances. Since:4.3.0

Method Summary

All Methods Static Methods Concrete Methods | 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. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

- 

sendToast

public static void sendToast(@NonNull
                             android.content.Context context,
                             @StringRes
                             int toastResourceId,
                             int toastLength)

Sends a Toast and ensures that any Exception thrown during sending is handled. Parameters:context - Application context.toastResourceId - Id of the resource to send as the Toast message.toastLength - Length of the Toast.

Skip navigation links