Class

INWorkoutGoalUnitTypeResolutionResult

A resolution result for the units of a workout goal.

Declaration

class INWorkoutGoalUnitTypeResolutionResult : INIntentResolutionResult

Overview

An INWorkoutGoalUnitTypeResolutionResult object is what you return when resolving parameters that contain a INWorkoutGoalUnitType value. Use the creation method that best reflects your ability to successfully resolve the parameter. For additional resolution options, see INIntentResolutionResult.

Topics

Creating a Resolution Result Object

class func success(with: INWorkoutGoalUnitType) -> Self

Creates an object whose resolution involves successfully matching the specified parameter.

class func confirmationRequired(with: INWorkoutGoalUnitType) -> Self

Creates an object whose resolution requires the user to confirm the workout unit goal value before proceeding.

Relationships

Conforms To

See Also

Resolution Results

class INWorkoutLocationTypeResolutionResult

A resolution result for the location type where the workout occurs.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software