INEndWorkoutIntent
A request to end the current workout that also validates workout parameters and saves the results.
Declaration
class INEndWorkoutIntentOverview
SiriKit creates an INEndWorkoutIntent object when the user asks to finish an in-progress workout. Finishing a workout stops it and records any progress made toward the workout’s goals. Use this intent object to validate the workout parameters.
To handle this intent, the handler object in your Intents extension must adopt the INEndWorkoutIntentHandling protocol. Your handler should confirm the request and create an INEndWorkoutIntentResponse object that indicates it’s possible to end the workout. For the successful handling of the intent, SiriKit launches your app and passes it an NSUserActivity object your app must then use to end 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 |