The handler interface for resuming a workout.


protocol INResumeWorkoutIntentHandling


Use the methods of the INResumeWorkoutIntentHandling protocol to resolve, confirm, and handle requests to resume a paused workout using your app. Adopt this protocol in an object of your Intents extension that is capable of validating the workout name.

You do not actually resume the workout from your Intents extension. When your handle(intent:completion:) returns, Siri launches your app and passes it an NSUserActivity object containing the intent object and your response. Your app uses the information in those objects to resume the workout.


Handling the Intent

Confirming the Response

func confirm(intent: INResumeWorkoutIntent, completion: (INResumeWorkoutIntentResponse) -> Void)

Called when it is time for you to confirm that you can resume the workout.

Resolving Details of the Intent

func resolveWorkoutName(for: INResumeWorkoutIntent, with: (INSpeakableStringResolutionResult) -> Void)

Called when you need to resolve the name of the workout that the user wants to resume.


Inherits From

See Also

Resume a Workout

class INResumeWorkoutIntent

A request to resume a paused workout.

class INResumeWorkoutIntentResponse

Contains your app’s response to a resume workout intent.