Contents

resolveIsOpenEnded(for:with:)

Resolves whether the user’s workout is open ended.

Declaration

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

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 resolution result object containing information about your proposed resolution. For a successful resolution, create a resolution result that includes the Boolean value indicating whether you plan to start the workout with an open-ended or fixed goal. This parameter must not be nil.

Discussion

This method resolves whether the workout is open ended. If you don’t implement this method, SiriKit assumes that you’re able to start either an open ended or fixed goal workout.

See Also

Resolving the Intent Parameters