INPauseWorkoutIntentHandling

INPauseWorkoutIntentHandling

INPauseWorkoutIntentHandling Protocol of Intents An interface that handles requests to pause a workout.

protocol INPauseWorkoutIntentHandling : NSObjectProtocol

Overview

Use the methods of the INPauseWorkoutIntentHandling protocol to resolve, confirm, and handle requests to pause a workout that’s using your app. Adopt this protocol in an object of your Intents extension that’s capable of validating the workout name.

You don’t actually pause the workout from your Intents extension. When the handle(intent:completion:)) returns, SiriKit launches your app and passes it to an //com.apple.documentation/documentation/Foundation/NSUserActivity object that contains the intent object and your response. Your app uses the information in those objects to pause the workout.