Interface ToastUtils.ToastInterceptor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract boolean willToast(Context context, CharSequence text, int duration) Determines whether to intercept the toast.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • willToast

         abstract boolean willToast(Context context, CharSequence text, int duration)

        Determines whether to intercept the toast.

        Parameters:
        context - context
        text - toast text
        duration - toast duration
        Returns:

        true: do not intercept, SDK shows the toast. false: intercept, app handles the toast.