ScheduledTask
A snapshot of one scheduled task's current state — returned from Scheduler.scheduled for inspection.
Best-effort per platform:
Android: derived from
WorkInfodirectly.iOS: combined view of the library's state store and
BGTaskScheduler.getPendingTaskRequests. The library does not directly observe a worker between handler-fire andsetTaskCompletedSuccess, so that span is reported as State.Pending rather than State.Running.
Constructors
Properties
Whether this task was scheduled as a one-time or repeating request.
Best-effort hint of when the platform plans to run this next. May be null.
Conditions currently preventing this task from running, surfaced so inspector UIs can answer "why isn't this dispatching yet?". Best-effort per platform; see PendingPredicate for platform support caveats. Empty when nothing is blocking dispatch.
Current execution state; see State for per-platform accuracy caveats.