Initializes an intent object with the specified workout name.
- iOS 10.0+
- Mac Catalyst 13.0+Beta
- watchOS 3.2+
The name of the workout.
An initialized intent object or
nil if the object could not be created.
Typically, you don’t create instances of this class yourself. Siri creates instances when the user asks to end a workout. However, you can use this method during testing to create intent objects that validate your intent handling code paths.