INPauseWorkoutIntent

INPauseWorkoutIntent

INPauseWorkoutIntent Class of Intents A request to pause the current workout that also stops the gathering of workout data.

class INPauseWorkoutIntent

Overview

SiriKit creates an INPauseWorkoutIntent object when the user asks to pause a currently running workout. Pausing a workout stops the gathering of workout data without clearing the current workout progress information. Use this intent object to validate workout parameters.

To handle this intent, the handler object in your Intents extension must adopt the INPauseWorkoutIntentHandling protocol. Your handler should confirm the request and create an INPauseWorkoutIntentResponse object that indicates it’s possible to pause the workout. SiriKit launches your app and passes it an //com.apple.documentation/documentation/Foundation/NSUserActivity object that your app must then use to pause the workout.