Package ai.nexconn.chatui.utils.common
Class ToastUtils
-
- All Implemented Interfaces:
public final class ToastUtilsToast utility class for internal SDK toast display.
Apps can use setInterceptor to intercept SDK toasts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceToastUtils.ToastInterceptorSDK ChatUI toast interceptor.
-
Constructor Summary
Constructors Constructor Description ToastUtils()
-
Method Summary
Modifier and Type Method Description static voidshow(Context context, CharSequence text, int duration)Shows a toast, subject to setInterceptor. static voidsetInterceptor(ToastUtils.ToastInterceptor interceptor)Sets the toast interceptor. -
-
Method Detail
-
show
static void show(Context context, CharSequence text, int duration)
Shows a toast, subject to setInterceptor.
- Parameters:
context- contexttext- toast textduration- toast duration, LENGTH_SHORT or LENGTH_LONG
-
setInterceptor
static void setInterceptor(ToastUtils.ToastInterceptor interceptor)
Sets the toast interceptor.
- Parameters:
interceptor- the interceptor ToastInterceptor
-
-
-
-