Contents

resolveWorkoutLocationType(for:with:)

Resolves the location type of a user’s workout.

Declaration

optional func resolveWorkoutLocationType(for intent: INStartWorkoutIntent, with completion: @escaping  @Sendable (INWorkoutLocationTypeResolutionResult) -> Void)
optional func resolveWorkoutLocationType(for intent: INStartWorkoutIntent) async -> INWorkoutLocationTypeResolutionResult

Parameters

  • intent:

    The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.

  • completion:

    The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:

    resolutionResult

    The object containing the details of your proposed resolution. For a successful resolution, create a resolution result that includes the Inworkoutlocationtype constant you plan to use for the workout location.

Discussion

This method resolves the user-supplied workout location. If you don’t implement this method, SiriKit assumes that you’re able to start the workout in the specified location.

See Also

Resolving the Intent Parameters