willToast

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

Determines whether to intercept the toast.

Return

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

Parameters

context

context

text

toast text

duration

toast duration