PeriodicSyncConfiguration

class PeriodicSyncConfiguration(syncConstraints: <ERROR CLASS>, repeat: RepeatInterval, retryConfiguration: RetryConfiguration?)

Configuration for period synchronisation

Constructors

Link copied to clipboard
fun PeriodicSyncConfiguration(syncConstraints: <ERROR CLASS> = Constraints.Builder().build(), repeat: RepeatInterval, retryConfiguration: RetryConfiguration? = defaultRetryConfiguration)

Properties

Link copied to clipboard
val repeat: RepeatInterval

The interval at which the sync should be triggered in. It must be greater than or equal to androidx.work.PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS

Link copied to clipboard
val retryConfiguration: RetryConfiguration?

Configuration for synchronization retry

Link copied to clipboard
val syncConstraints: <ERROR CLASS>

Constraints that specify the requirements needed before the synchronisation is triggered. E.g. network type (Wifi, 3G etc), the device should be charging etc.