INStartWorkoutIntent

INStartWorkoutIntent

INStartWorkoutIntent Class of Intents A request to start a workout for the user.

class INStartWorkoutIntent

Overview

SiriKit creates an INStartWorkoutIntent object when the user asks to start a workout using your app. A start workout intent identifies the user-selected workout type and goals.

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