Package 

Object ToastSender


  • 
    public class ToastSender
    
                        

    Responsible for sending Toasts under all circumstances.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static ToastSender INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final static Unit sendToast(Context context, String toast, @IntRange(from = 0.toLong(), to = 1.toLong()) Integer 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

         final static Unit sendToast(Context context, String toast, @IntRange(from = 0.toLong(), to = 1.toLong()) Integer 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.