-
- All Implemented Interfaces:
-
org.acra.config.ConfigurationBuilder
public final class SchedulerConfigurationBuilder implements ConfigurationBuilderClass generated based on AcraScheduler (Jul 28, 2021 5:41:54 PM)
-
-
Field Summary
Fields Modifier and Type Field Description private Contextcontextprivate Booleanenabledprivate IntegerrequiresNetworkTypeprivate BooleanrequiresChargingprivate BooleanrequiresDeviceIdleprivate BooleanrequiresBatteryNotLowprivate BooleanrestartAfterCrash
-
Constructor Summary
Constructors Constructor Description SchedulerConfigurationBuilder(Context arg0)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final UnitsetContext(Context context)final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)final IntegergetRequiresNetworkType()Network constraint for report sending final UnitsetRequiresNetworkType(Integer requiresNetworkType)Network constraint for report sending final BooleangetRequiresCharging()Charging constraint for report sending final UnitsetRequiresCharging(Boolean requiresCharging)Charging constraint for report sending final BooleangetRequiresDeviceIdle()Idle constraint for report sending final UnitsetRequiresDeviceIdle(Boolean requiresDeviceIdle)Idle constraint for report sending final BooleangetRequiresBatteryNotLow()Battery constraint for report sending final UnitsetRequiresBatteryNotLow(Boolean requiresBatteryNotLow)Battery constraint for report sending final BooleangetRestartAfterCrash()Restarts the last activity immediately after a crash. final UnitsetRestartAfterCrash(Boolean restartAfterCrash)Restarts the last activity immediately after a crash. final SchedulerConfigurationBuilderwithEnabled(Boolean enabled)final SchedulerConfigurationBuilderwithRequiresNetworkType(Integer requiresNetworkType)Network constraint for report sending final SchedulerConfigurationBuilderwithRequiresCharging(Boolean requiresCharging)Charging constraint for report sending final SchedulerConfigurationBuilderwithRequiresDeviceIdle(Boolean requiresDeviceIdle)Idle constraint for report sending final SchedulerConfigurationBuilderwithRequiresBatteryNotLow(Boolean requiresBatteryNotLow)Battery constraint for report sending final SchedulerConfigurationBuilderwithRestartAfterCrash(Boolean restartAfterCrash)Restarts the last activity immediately after a crash. SchedulerConfigurationbuild()-
-
Constructor Detail
-
SchedulerConfigurationBuilder
SchedulerConfigurationBuilder(Context arg0)
-
-
Method Detail
-
getContext
final Context getContext()
-
setContext
final Unit setContext(Context context)
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
getRequiresNetworkType
final Integer getRequiresNetworkType()
Network constraint for report sending
-
setRequiresNetworkType
final Unit setRequiresNetworkType(Integer requiresNetworkType)
Network constraint for report sending
-
getRequiresCharging
final Boolean getRequiresCharging()
Charging constraint for report sending
-
setRequiresCharging
final Unit setRequiresCharging(Boolean requiresCharging)
Charging constraint for report sending
-
getRequiresDeviceIdle
final Boolean getRequiresDeviceIdle()
Idle constraint for report sending
-
setRequiresDeviceIdle
final Unit setRequiresDeviceIdle(Boolean requiresDeviceIdle)
Idle constraint for report sending
-
getRequiresBatteryNotLow
final Boolean getRequiresBatteryNotLow()
Battery constraint for report sending
-
setRequiresBatteryNotLow
final Unit setRequiresBatteryNotLow(Boolean requiresBatteryNotLow)
Battery constraint for report sending
-
getRestartAfterCrash
final Boolean getRestartAfterCrash()
Restarts the last activity immediately after a crash. If an activity is restarted, the {@link org.acra.annotation.AcraScheduler#EXTRA_APP_RESTARTED} extra will contain a boolean true. Note that this might interact badly with the crash dialog.
-
setRestartAfterCrash
final Unit setRestartAfterCrash(Boolean restartAfterCrash)
Restarts the last activity immediately after a crash. If an activity is restarted, the {@link org.acra.annotation.AcraScheduler#EXTRA_APP_RESTARTED} extra will contain a boolean true. Note that this might interact badly with the crash dialog.
-
withEnabled
final SchedulerConfigurationBuilder withEnabled(Boolean enabled)
-
withRequiresNetworkType
final SchedulerConfigurationBuilder withRequiresNetworkType(Integer requiresNetworkType)
Network constraint for report sending
- Parameters:
requiresNetworkType- networkType required to allow report sending
-
withRequiresCharging
final SchedulerConfigurationBuilder withRequiresCharging(Boolean requiresCharging)
Charging constraint for report sending
- Parameters:
requiresCharging- if reports should only be sent while charging
-
withRequiresDeviceIdle
final SchedulerConfigurationBuilder withRequiresDeviceIdle(Boolean requiresDeviceIdle)
Idle constraint for report sending
- Parameters:
requiresDeviceIdle- if reports should only be sent while the device is idle
-
withRequiresBatteryNotLow
final SchedulerConfigurationBuilder withRequiresBatteryNotLow(Boolean requiresBatteryNotLow)
Battery constraint for report sending
- Parameters:
requiresBatteryNotLow- if reports should only be sent while battery isn't low
-
withRestartAfterCrash
final SchedulerConfigurationBuilder withRestartAfterCrash(Boolean restartAfterCrash)
Restarts the last activity immediately after a crash. If an activity is restarted, the {@link org.acra.annotation.AcraScheduler#EXTRA_APP_RESTARTED} extra will contain a boolean true. Note that this might interact badly with the crash dialog.
- Parameters:
restartAfterCrash- if acra should attempt to restart the app after a crash
-
build
SchedulerConfiguration build()
-
-
-
-