Confirms that your app is able to resume the workout.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
Framework
- Intents
Declaration
optional func confirm(intent: INResume Workout Intent, completion: @escaping (INResume Workout Intent Response) -> Void)
Parameters
intent
The intent object that contains details about the user’s request. Use the information in this object to get the information specified by the user.
completion
The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:
- response
The
INResume
object that contains the status of whether your app is able to resume the workout. This parameter must not beWorkout Intent Response nil
.
Discussion
This method validates that your app is currently able to resume the user’s workout. For example, verifying that a workout is currently paused.