An interface that handles requests to complete a workout.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
Framework
- Intents
Declaration
@protocol INEndWorkoutIntentHandling
Overview
Use the methods of the INEnd
protocol to resolve, confirm, and handle requests to end a workout using your app. Adopt this protocol in an object of your Intents extension capable of validating the workout name.
You don’t actually end the workout from your Intents extension. When your handle
returns, SiriKit launches your app and passes it an NSUser
object that contains the end workout intent object and your response. Your app uses the information in those objects to end the workout.