Contents

confirm(intent:completion:)

Confirms that you can pause the current workout.

Declaration

optional func confirm(intent: INPauseWorkoutIntent, completion: @escaping  @Sendable (INPauseWorkoutIntentResponse) -> Void)
optional func confirm(intent: INPauseWorkoutIntent) async -> INPauseWorkoutIntentResponse

Parameters

  • intent:

    The intent object that contains details about the user’s request. Use the information in this object to get user-specified information.

  • 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 Inpauseworkoutintentresponse object that contains the status of whether your app is able to pause the workout. This parameter must not be nil.

Discussion

This method validates that your app is able to pause the user’s current workout. For example, verify that a workout is currently in progress and you can pause it.