INCancelWorkoutIntent

INCancelWorkoutIntent

INCancelWorkoutIntent Class of Intents A request to cancel an active workout.

class INCancelWorkoutIntent

Overview

SiriKit creates an INCancelWorkoutIntent object when the user asks to cancel a currently running workout. Canceling a workout stops the workout and doesn’t record any progress toward the workout goals. Use this intent object to get the workout parameters.

To handle this intent, the handler object in your Intents extension must adopt the INCancelWorkoutIntentHandling protocol. Your handler should confirm the request and create an INCancelWorkoutIntentResponse object to indicate it’s possible to cancel the workout. For the successful handling of the intent, SiriKit launches your app and passes it an //com.apple.documentation/documentation/Foundation/NSUserActivity object that your app must then use to cancel the workout.