Instance Method

handleResumeWorkout:completion:

Handles resuming the workout.

Required.

Declaration

- (void)handleResumeWorkout:(INResumeWorkoutIntent *)intent completion:(void (^)(INResumeWorkoutIntentResponse *response))completion;

Parameters

intent

The intent object that contains details about the user’s request. This object’s information has already been resolved and confirmed by the user.

completion

The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:

response

The INResumeWorkoutIntentResponse object you create to report the status of the request. This parameter must not be nil.

Discussion

Implement this method to turn control of resuming the workout to your app. When your response object contains the INResumeWorkoutIntentResponseCodeContinueInApp code, SiriKit automatically launches your app and passes it the NSUserActivity object from your response object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software