public class ReportExecutor extends Object
| Constructor and Description |
|---|
ReportExecutor(Context context,
CoreConfiguration config,
CrashReportDataFactory crashReportDataFactory,
Thread.UncaughtExceptionHandler defaultExceptionHandler,
ProcessFinisher processFinisher,
SchedulerStarter schedulerStarter,
LastActivityManager lastActivityManager)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ReportBuilder reportBuilder)
Try to create a report.
|
void |
handReportToDefaultExceptionHandler(Thread t,
Throwable e)
pass-through to default handler
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
public ReportExecutor(@NonNull
Context context,
@NonNull
CoreConfiguration config,
@NonNull
CrashReportDataFactory crashReportDataFactory,
@Nullable
Thread.UncaughtExceptionHandler defaultExceptionHandler,
@NonNull
ProcessFinisher processFinisher,
@NonNull
SchedulerStarter schedulerStarter,
@NonNull
LastActivityManager lastActivityManager)
context - a contextconfig - the configcrashReportDataFactory - factory used to collect datadefaultExceptionHandler - pass-through handlerprocessFinisher - used to end process after reportingschedulerStarter - used to start report sendinglastActivityManager - used to finish activities after reportingpublic void handReportToDefaultExceptionHandler(@Nullable
Thread t,
@NonNull
Throwable e)
t - the crashed threade - the uncaught exceptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public final void execute(@NonNull
ReportBuilder reportBuilder)
LegacySenderServicereportBuilder - The report builder used to assemble the report