SchedulerConfiguration

class SchedulerConfiguration(enabled: Boolean, requiresNetworkType: Int, requiresCharging: Boolean, requiresDeviceIdle: Boolean, requiresBatteryNotLow: Boolean, restartAfterCrash: Boolean) : Configuration

Author

F43nd1r

Since

18.04.18

Constructors

SchedulerConfiguration
Link copied to clipboard
fun SchedulerConfiguration(enabled: Boolean = true, requiresNetworkType: Int = JobInfo.NETWORK_TYPE_NONE, requiresCharging: Boolean = false, requiresDeviceIdle: Boolean = false, requiresBatteryNotLow: Boolean = false, restartAfterCrash: Boolean = false)

Functions

enabled
Link copied to clipboard
open override fun enabled(): Boolean

Properties

enabled
Link copied to clipboard
val enabled: Boolean = true
enables this plugin
requiresBatteryNotLow
Link copied to clipboard
val requiresBatteryNotLow: Boolean = false
Battery constraint for report sending
requiresCharging
Link copied to clipboard
val requiresCharging: Boolean = false
Charging constraint for report sending
requiresDeviceIdle
Link copied to clipboard
val requiresDeviceIdle: Boolean = false
Idle constraint for report sending
requiresNetworkType
Link copied to clipboard
val requiresNetworkType: Int
Network constraint for report sending
restartAfterCrash
Link copied to clipboard
val restartAfterCrash: Boolean = false
Restarts the last activity immediately after a crash.