-
- All Implemented Interfaces:
-
org.acra.config.ConfigurationBuilder
public final class MailSenderConfigurationBuilder implements ConfigurationBuilderClass generated based on AcraMailSender (Jun 6, 2021 5:04:06 PM)
-
-
Constructor Summary
Constructors Constructor Description MailSenderConfigurationBuilder(Context arg0)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final UnitsetContext(Context context)final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)final StringgetMailTo()your crash reports mailbox final UnitsetMailTo(String mailTo)your crash reports mailbox final BooleangetReportAsFile()Sending the report as an attachment prevents issues with report size and the user from modifying it final UnitsetReportAsFile(Boolean reportAsFile)Sending the report as an attachment prevents issues with report size and the user from modifying it final StringgetReportFileName()custom file name for the report final UnitsetReportFileName(String reportFileName)custom file name for the report final StringgetSubject()custom email subject. final UnitsetSubject(String subject)custom email subject. final StringgetBody()custom email body. final UnitsetBody(String body)custom email body. final MailSenderConfigurationBuilderwithEnabled(Boolean enabled)final MailSenderConfigurationBuilderwithMailTo(String mailTo)your crash reports mailbox final MailSenderConfigurationBuilderwithReportAsFile(Boolean reportAsFile)Sending the report as an attachment prevents issues with report size and the user from modifying it final MailSenderConfigurationBuilderwithReportFileName(String reportFileName)custom file name for the report final MailSenderConfigurationBuilderwithSubject(String subject)custom email subject. final MailSenderConfigurationBuilderwithResSubject(@StringRes() Integer resSubject)custom email subject. final MailSenderConfigurationBuilderwithBody(String body)custom email body. final MailSenderConfigurationBuilderwithResBody(@StringRes() Integer resBody)custom email body. MailSenderConfigurationbuild()-
-
Constructor Detail
-
MailSenderConfigurationBuilder
MailSenderConfigurationBuilder(Context arg0)
-
-
Method Detail
-
getContext
final Context getContext()
-
setContext
final Unit setContext(Context context)
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
getReportAsFile
final Boolean getReportAsFile()
Sending the report as an attachment prevents issues with report size and the user from modifying it
-
setReportAsFile
final Unit setReportAsFile(Boolean reportAsFile)
Sending the report as an attachment prevents issues with report size and the user from modifying it
-
getReportFileName
final String getReportFileName()
custom file name for the report
-
setReportFileName
final Unit setReportFileName(String reportFileName)
custom file name for the report
-
getSubject
final String getSubject()
custom email subject. Default is "<applicationId> Crash Report"
-
setSubject
final Unit setSubject(String subject)
custom email subject. Default is "<applicationId> Crash Report"
-
withEnabled
final MailSenderConfigurationBuilder withEnabled(Boolean enabled)
-
withMailTo
final MailSenderConfigurationBuilder withMailTo(String mailTo)
your crash reports mailbox
- Parameters:
mailTo- email address to which to send reports.
-
withReportAsFile
final MailSenderConfigurationBuilder withReportAsFile(Boolean reportAsFile)
Sending the report as an attachment prevents issues with report size and the user from modifying it
- Parameters:
reportAsFile- if the report should be an attachment instead of plain text.
-
withReportFileName
final MailSenderConfigurationBuilder withReportFileName(String reportFileName)
custom file name for the report
- Parameters:
reportFileName- report file name
-
withSubject
final MailSenderConfigurationBuilder withSubject(String subject)
custom email subject. Default is "<applicationId> Crash Report"
- Parameters:
subject- resource id of the custom email subject
-
withResSubject
final MailSenderConfigurationBuilder withResSubject(@StringRes() Integer resSubject)
custom email subject. Default is "<applicationId> Crash Report"
- Parameters:
resSubject- resource id of the custom email subject
-
withBody
final MailSenderConfigurationBuilder withBody(String body)
custom email body.
- Parameters:
body- resource id of the custom email body
-
withResBody
final MailSenderConfigurationBuilder withResBody(@StringRes() Integer resBody)
custom email body.
- Parameters:
resBody- resource id of the custom email body
-
build
MailSenderConfiguration build()
-
-
-
-