An interface for adopting all of the protocols in the workouts domain.
SDKs
- iOS 10.0–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 3.2–6.0Deprecated
Framework
- Intents
Declaration
protocol INWorkoutsDomainHandling
Overview
The INWorkouts
protocol is a convenience protocol that adopts all of the protocols used to handle workout-related intents. When your app adopts all of the protocols associated with workouts, you can adopt this one protocol instead of adopting the INStart
, INPause
, INResume
, INCancel
, and INEnd
protocols separately.
An object that adopts this protocol must be able to respond to the following intents:
INStart
, a request to start a new workout.Workout Intent INPause
, a request to pause the current workout.Workout Intent INResume
, a request to resume a paused workout.Workout Intent INEnd
, a request to end the active workout and save the results.Workout Intent INCancel
, a request to cancel the active workout without saving the results.Workout Intent
Your handler object must be prepared to resolve any parameters associated with these intents and to confirm and handle the requests. When confirming and handling a request, you provide the response object that matches the specified intent.