INWorkoutsDomainHandling
An interface for adopting all of the protocols in the workouts domain.
Declaration
protocol INWorkoutsDomainHandling : INCancelWorkoutIntentHandling, INEndWorkoutIntentHandling, INPauseWorkoutIntentHandling, INResumeWorkoutIntentHandling, INStartWorkoutIntentHandlingOverview
The INWorkoutsDomainHandling 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 INStartWorkoutIntentHandling, INPauseWorkoutIntentHandling, INResumeWorkoutIntentHandling, INCancelWorkoutIntentHandling, and INEndWorkoutIntentHandling protocols separately.
An object that adopts this protocol must be able to respond to the following intents:
INStartWorkoutIntent, a request to start a new workout.
INPauseWorkoutIntent, a request to pause the current workout.
INResumeWorkoutIntent, a request to resume a paused workout.
INEndWorkoutIntent, a request to end the active workout and save the results.
INCancelWorkoutIntent, 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.