Contents

WKIntentDidRunRefreshBackgroundTask

A background task used to update your app after a SiriKit intent runs.

Declaration

class WKIntentDidRunRefreshBackgroundTask

Mentioned in

Overview

Intent-based shortcuts can update your app’s state; however, the intent executes in a separate process from your WatchKit extension. To update the app, the system schedules this task whenever one of your intents finishes executing. Use this task to check for any updates to your app’s state, and to make sure its visible interfaces are current. For example, you can update all of your app’s snapshot, complications, and relevant shortcuts.

Don’t subclass or create instances of this class. Instead, the system instantiates a WKIntentDidRunRefreshBackgroundTask object and passes the task object to your app delegate’s handle(_:) method.

See Also

Background tasks