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) 是否拦截
      • 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)

        是否拦截

        Parameters:
        context - context
        text - toast 文本
        duration - toast 显示时间
        Returns:

        true:不拦截,由 SDK 弹 toast。false:拦截 SDK toast,由 App 自行弹 toast。