Interface: PluginBackgroundTask
A deferrable task that can run without an open interactive application session.
Properties
id
id:
string
Stable identifier, unique inside the plugin manifest.
action
action:
string
Plugin action passed to onAction(params, actionId).
intervalMinutes
intervalMinutes:
number
Repeat interval in minutes. Android's minimum is 15 minutes.
freshnessMinutes?
optionalfreshnessMinutes?:number
Skip periodic delivery while the previous successful result is newer than this many minutes.
flexMinutes?
optionalflexMinutes?:number
Optional flexible execution window at the end of each interval.
runOnInstall?
optionalrunOnInstall?:boolean
Schedule an immediate one-time run when this plugin/version is installed.
runOnConfigChange?
optionalrunOnConfigChange?:boolean
Schedule an immediate one-time run after the user saves plugin configuration.
sliceDurationMinutes?
optionalsliceDurationMinutes?:number
Cooperative slice budget. The plugin should checkpoint and request a continuation before it expires.
constraints?
optionalconstraints?:BackgroundTaskConstraints
Conditions that must be satisfied before automatic delivery.