-
- All Implemented Interfaces:
-
org.acra.config.ConfigurationBuilder
public final class DialogConfigurationBuilder implements ConfigurationBuilderClass generated based on {@link AcraDialog} (May 19, 2021 12:18:18 PM)
-
-
Field Summary
Fields Modifier and Type Field Description private Contextcontextprivate Booleanenabledprivate Class<out Activity>reportDialogClassprivate StringpositiveButtonTextprivate StringnegativeButtonTextprivate StringcommentPromptprivate StringemailPromptprivate IntegerresIconprivate Stringtextprivate Stringtitleprivate IntegerresTheme
-
Constructor Summary
Constructors Constructor Description DialogConfigurationBuilder(Context arg0)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final UnitsetContext(Context context)final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)final Class<out Activity>getReportDialogClass()Custom CrashReportDialog class final UnitsetReportDialogClass(Class<out Activity> reportDialogClass)Custom CrashReportDialog class final StringgetPositiveButtonText()label of the positive button final UnitsetPositiveButtonText(String positiveButtonText)label of the positive button final StringgetNegativeButtonText()label of the negative button final UnitsetNegativeButtonText(String negativeButtonText)label of the negative button final StringgetCommentPrompt()label of the comment input prompt. final UnitsetCommentPrompt(String commentPrompt)label of the comment input prompt. final StringgetEmailPrompt()label of the email input prompt. final UnitsetEmailPrompt(String emailPrompt)label of the email input prompt. final IntegergetResIcon()icon of the dialog final UnitsetResIcon(@DrawableRes() Integer resIcon)icon of the dialog final StringgetText()text in the dialog final UnitsetText(String text)text in the dialog final StringgetTitle()title of the dialog final UnitsetTitle(String title)title of the dialog final IntegergetResTheme()theme of the dialog final UnitsetResTheme(@StyleRes() Integer resTheme)theme of the dialog final DialogConfigurationBuilderwithEnabled(Boolean enabled)final DialogConfigurationBuilderwithReportDialogClass(Class<out Activity> reportDialogClass)Custom CrashReportDialog class final DialogConfigurationBuilderwithPositiveButtonText(String positiveButtonText)label of the positive button final DialogConfigurationBuilderwithResPositiveButtonText(@StringRes() Integer resPositiveButtonText)label of the positive button final DialogConfigurationBuilderwithNegativeButtonText(String negativeButtonText)label of the negative button final DialogConfigurationBuilderwithResNegativeButtonText(@StringRes() Integer resNegativeButtonText)label of the negative button final DialogConfigurationBuilderwithCommentPrompt(String commentPrompt)label of the comment input prompt. final DialogConfigurationBuilderwithResCommentPrompt(@StringRes() Integer resCommentPrompt)label of the comment input prompt. final DialogConfigurationBuilderwithEmailPrompt(String emailPrompt)label of the email input prompt. final DialogConfigurationBuilderwithResEmailPrompt(@StringRes() Integer resEmailPrompt)label of the email input prompt. final DialogConfigurationBuilderwithResIcon(@DrawableRes() Integer resIcon)icon of the dialog final DialogConfigurationBuilderwithText(String text)text in the dialog final DialogConfigurationBuilderwithResText(@StringRes() Integer resText)text in the dialog final DialogConfigurationBuilderwithTitle(String title)title of the dialog final DialogConfigurationBuilderwithResTitle(@StringRes() Integer resTitle)title of the dialog final DialogConfigurationBuilderwithResTheme(@StyleRes() Integer resTheme)theme of the dialog DialogConfigurationbuild()-
-
Constructor Detail
-
DialogConfigurationBuilder
DialogConfigurationBuilder(Context arg0)
-
-
Method Detail
-
getContext
final Context getContext()
-
setContext
final Unit setContext(Context context)
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
getReportDialogClass
final Class<out Activity> getReportDialogClass()
Custom CrashReportDialog class
-
setReportDialogClass
final Unit setReportDialogClass(Class<out Activity> reportDialogClass)
Custom CrashReportDialog class
-
getPositiveButtonText
final String getPositiveButtonText()
label of the positive button
-
setPositiveButtonText
final Unit setPositiveButtonText(String positiveButtonText)
label of the positive button
-
getNegativeButtonText
final String getNegativeButtonText()
label of the negative button
-
setNegativeButtonText
final Unit setNegativeButtonText(String negativeButtonText)
label of the negative button
-
getCommentPrompt
final String getCommentPrompt()
label of the comment input prompt. If not provided, removes the input field.
-
setCommentPrompt
final Unit setCommentPrompt(String commentPrompt)
label of the comment input prompt. If not provided, removes the input field.
-
getEmailPrompt
final String getEmailPrompt()
label of the email input prompt. If not provided, removes the input field.
-
setEmailPrompt
final Unit setEmailPrompt(String emailPrompt)
label of the email input prompt. If not provided, removes the input field.
-
getResIcon
final Integer getResIcon()
icon of the dialog
-
setResIcon
final Unit setResIcon(@DrawableRes() Integer resIcon)
icon of the dialog
-
getResTheme
final Integer getResTheme()
theme of the dialog
-
setResTheme
final Unit setResTheme(@StyleRes() Integer resTheme)
theme of the dialog
-
withEnabled
final DialogConfigurationBuilder withEnabled(Boolean enabled)
-
withReportDialogClass
final DialogConfigurationBuilder withReportDialogClass(Class<out Activity> reportDialogClass)
Custom CrashReportDialog class
- Parameters:
reportDialogClass- The activity to use to prompt the user for crash details.
-
withPositiveButtonText
final DialogConfigurationBuilder withPositiveButtonText(String positiveButtonText)
label of the positive button
- Parameters:
positiveButtonText- Resource id for the positive button label in the crash dialog.
-
withResPositiveButtonText
final DialogConfigurationBuilder withResPositiveButtonText(@StringRes() Integer resPositiveButtonText)
label of the positive button
- Parameters:
resPositiveButtonText- Resource id for the positive button label in the crash dialog.
-
withNegativeButtonText
final DialogConfigurationBuilder withNegativeButtonText(String negativeButtonText)
label of the negative button
- Parameters:
negativeButtonText- Resource id for the negative button label in the crash dialog.
-
withResNegativeButtonText
final DialogConfigurationBuilder withResNegativeButtonText(@StringRes() Integer resNegativeButtonText)
label of the negative button
- Parameters:
resNegativeButtonText- Resource id for the negative button label in the crash dialog.
-
withCommentPrompt
final DialogConfigurationBuilder withCommentPrompt(String commentPrompt)
label of the comment input prompt. If not provided, removes the input field.
- Parameters:
commentPrompt- Resource id for the user comment input label in the crash dialog.
-
withResCommentPrompt
final DialogConfigurationBuilder withResCommentPrompt(@StringRes() Integer resCommentPrompt)
label of the comment input prompt. If not provided, removes the input field.
- Parameters:
resCommentPrompt- Resource id for the user comment input label in the crash dialog.
-
withEmailPrompt
final DialogConfigurationBuilder withEmailPrompt(String emailPrompt)
label of the email input prompt. If not provided, removes the input field.
- Parameters:
emailPrompt- Resource id for the user email address input label in the crash dialog.
-
withResEmailPrompt
final DialogConfigurationBuilder withResEmailPrompt(@StringRes() Integer resEmailPrompt)
label of the email input prompt. If not provided, removes the input field.
- Parameters:
resEmailPrompt- Resource id for the user email address input label in the crash dialog.
-
withResIcon
final DialogConfigurationBuilder withResIcon(@DrawableRes() Integer resIcon)
icon of the dialog
- Parameters:
resIcon- Resource id for the icon in the crash dialog.
-
withText
final DialogConfigurationBuilder withText(String text)
text in the dialog
- Parameters:
text- Resource id for the text in the crash dialog.
-
withResText
final DialogConfigurationBuilder withResText(@StringRes() Integer resText)
text in the dialog
- Parameters:
resText- Resource id for the text in the crash dialog.
-
withTitle
final DialogConfigurationBuilder withTitle(String title)
title of the dialog
- Parameters:
title- Resource id for the title in the crash dialog.
-
withResTitle
final DialogConfigurationBuilder withResTitle(@StringRes() Integer resTitle)
title of the dialog
- Parameters:
resTitle- Resource id for the title in the crash dialog.
-
withResTheme
final DialogConfigurationBuilder withResTheme(@StyleRes() Integer resTheme)
theme of the dialog
- Parameters:
resTheme- resource id for the crash dialog theme
-
build
DialogConfiguration build()
-
-
-
-