DeferralReason

@ObjCName(swiftName = "DeferralReason")
sealed interface DeferralReason

Why a MonitorEvent.AttemptDeferred was emitted.

Inheritors

Types

Link copied to clipboard
data class BackoffWindow(val until: Instant?) : DeferralReason

The task is in a backoff window — the library asked the OS to delay until until, but the OS fired early.

Link copied to clipboard

The configured charging requirement was not satisfied.

Link copied to clipboard

A periodic tick fired but no task was due to run.

Link copied to clipboard
data class ReachabilityTimeout(val requirement: NetworkRequirement, val waited: Duration) : DeferralReason

The reachability gate timed out waiting for the configured WorkConstraints.networkRequired to be satisfied.