INPauseWorkoutIntent
A request to pause the current workout that also stops the gathering of workout data.
Declaration
class INPauseWorkoutIntentOverview
SiriKit creates an INPauseWorkoutIntent object when the user asks to pause a currently running workout. Pausing a workout stops the gathering of workout data without clearing the current workout progress information. Use this intent object to validate workout parameters.
To handle this intent, the handler object in your Intents extension must adopt the INPauseWorkoutIntentHandling protocol. Your handler should confirm the request and create an INPauseWorkoutIntentResponse object that indicates it’s possible to pause the workout. SiriKit launches your app and passes it an NSUserActivity object that your app must then use to pause the workout.
Additional Intent Attributes
The following table lists additional attributes of this intent object:
Attribute | Description |
|---|---|
Supported by | Siri Intents, Siri Suggestions |
Always requires unlocked device | Yes |