public final class ToastConfigurationBuilder extends Object implements ConfigurationBuilder
AcraToast (28.01.2018 23:08:38)| Constructor and Description |
|---|
ToastConfigurationBuilder(Class<?> arg0) |
ToastConfigurationBuilder(Object arg0) |
| Modifier and Type | Method and Description |
|---|---|
ToastConfiguration |
build() |
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
|
public ToastConfigurationBuilder(@NonNull Object arg0)
arg0 - object annotated with AcraToast@NonNull public ToastConfigurationBuilder setEnabled(boolean enabled)
@NonNull public ToastConfigurationBuilder setResText(@StringRes int resText)
resText - Resource id for the Toast text triggered when the application crashes.Toast.makeText(Context, int, int)@NonNull public ToastConfigurationBuilder setLength(int length)
Toast.LENGTH_LONG and Toast.LENGTH_SHORTlength - toast lengthToast.makeText(Context, int, int)@NonNull public ToastConfiguration build() throws ACRAConfigurationException
build in interface ConfigurationBuilderACRAConfigurationException