Instance Method

initWithWorkoutName:

Initializes an intent object with the specified workout name.

Declaration

- (instancetype)initWithWorkoutName:(INSpeakableString *)workoutName;

Parameters

workoutName

The name of the workout.

Return Value

An initialized intent object or nil if the object could not be created.

Discussion

Typically, you don’t create instances of this class yourself. Siri creates instances when the user asks to pause a workout. However, you can use this method during testing to create intent objects that validate your intent handling code paths.

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