INStartWorkoutIntentHandling
An interface that handles requests to start a workout.
Declaration
protocol INStartWorkoutIntentHandling : NSObjectProtocolOverview
Use the methods of the INStartWorkoutIntentHandling protocol to resolve, confirm, and handle requests to start a workout using your app. Adopt this protocol in an object of your Intents extension capable of validating the workout name or goals.
You don’t actually start a workout from your Intents extension. When your handle(intent:completion:) returns, Siri launches your app and passes it an NSUserActivity object that contains the INStartWorkoutIntent object and your response. Your app uses the information in those objects to start the workout.
Topics
Resolving the Intent Parameters
resolveWorkoutName(for:with:)resolveGoalValue(for:with:)resolveWorkoutGoalUnitType(for:with:)resolveWorkoutLocationType(for:with:)resolveIsOpenEnded(for:with:)