Provides a convenient way to adopt all of the protocols in the workouts domain.
- iOS 10.0+
- watchOS 3.2+
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
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.
INPause, a request to pause the current workout.
INResume, a request to resume a paused workout.
INEnd, a request to end the active workout and save the results.
INCancel, a request to cancel the active workout without saving the results.
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.