Back to Acra

ToastSender

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

latest3.1 KB
Original Source

Skip navigation links

org.acra.util

Class ToastSender


public final classToastSenderextends[Object](http://d.android.com/reference/java/lang/Object.html?is-external=true "class or interface in java.lang")

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(Context context, String toast, 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[Context](http://d.android.com/reference/android/content/Context.html?is-external=true "class or interface in android.content")context,[String](http://d.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")toast,
                             int toastLength)

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.

Skip navigation links