public interface SchedulerConfigurationBuilder extends ConfigurationBuilder
AcraScheduler
(18.03.2020 16:20:26)Modifier and Type | Method and Description |
---|---|
SchedulerConfigurationBuilder |
setEnabled(boolean enabled) |
SchedulerConfigurationBuilder |
setRequiresBatteryNotLow(boolean requiresBatteryNotLow)
Battery constraint for report sending
|
SchedulerConfigurationBuilder |
setRequiresCharging(boolean requiresCharging)
Charging constraint for report sending
|
SchedulerConfigurationBuilder |
setRequiresDeviceIdle(boolean requiresDeviceIdle)
Idle constraint for report sending
|
SchedulerConfigurationBuilder |
setRequiresNetworkType(int requiresNetworkType)
Network constraint for report sending
|
SchedulerConfigurationBuilder |
setRestartAfterCrash(boolean restartAfterCrash)
Restarts the last activity immediately after a crash.
|
build
@NonNull SchedulerConfigurationBuilder setEnabled(boolean enabled)
@NonNull SchedulerConfigurationBuilder setRequiresNetworkType(int requiresNetworkType)
requiresNetworkType
- networkType required to allow report sending@NonNull SchedulerConfigurationBuilder setRequiresCharging(boolean requiresCharging)
requiresCharging
- if reports should only be sent while charging@NonNull SchedulerConfigurationBuilder setRequiresDeviceIdle(boolean requiresDeviceIdle)
requiresDeviceIdle
- if reports should only be sent while the device is idle@NonNull SchedulerConfigurationBuilder setRequiresBatteryNotLow(boolean requiresBatteryNotLow)
requiresBatteryNotLow
- if reports should only be sent while battery isn't low@NonNull SchedulerConfigurationBuilder setRestartAfterCrash(boolean restartAfterCrash)
AcraScheduler.EXTRA_APP_RESTARTED
extra will contain a boolean true.
Note that this might interact badly with the crash dialog.restartAfterCrash
- if acra should attempt to restart the app after a crash