Instance Method

confirmEndWorkout:completion:

Confirms your app can end the workout.

Declaration

- (void)confirmEndWorkout:(INEndWorkoutIntent *)intent completion:(void (^)(INEndWorkoutIntentResponse *response))completion;

Parameters

intent

The intent object that contains details about the user’s request. Use this object’s information to get the user-specified workout details.

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 INEndWorkoutIntentResponse object that contains the status of whether your app is able to end the workout. This parameter must not be nil.

Discussion

This method validates that your app is currently able to end the user’s workout. For example, verify that a workout is currently in progress and whether you can end it.

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