public interface ToastConfigurationBuilder extends ConfigurationBuilder
AcraToast
(16.09.2018 00:54:48)Modifier and Type | Method and Description |
---|---|
ToastConfigurationBuilder |
setEnabled(boolean enabled) |
ToastConfigurationBuilder |
setLength(int length)
One of
Toast.LENGTH_LONG and Toast.LENGTH_SHORT |
ToastConfigurationBuilder |
setResText(int resText)
toast text triggered when the application crashes
|
ToastConfigurationBuilder |
setText(String text)
toast text triggered when the application crashes
|
build
@NonNull ToastConfigurationBuilder setEnabled(boolean enabled)
@NonNull ToastConfigurationBuilder setText(@Nullable String text)
text
- Resource id for the Toast text triggered when the application crashes.Toast.makeText(Context, int, int)
@NonNull ToastConfigurationBuilder setResText(@StringRes int resText)
resText
- Resource id for the Toast text triggered when the application crashes.Toast.makeText(Context, int, int)
@NonNull ToastConfigurationBuilder setLength(int length)
Toast.LENGTH_LONG
and Toast.LENGTH_SHORT
length
- toast lengthToast.makeText(Context, int, int)