Instance Method


Resolves the workout name that the user wants to end.


optional func resolveWorkoutName(for intent: INEndWorkoutIntent, with completion: @escaping (INSpeakableStringResolutionResult) -> Void)



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


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:


The object containing the details of your proposed resolution. For a successful resolution, create a resolution result that includes the workout name that you plan to end.


This method validates the user-supplied workout name. If you don’t implement this method, SiriKit assumes that you are able to end the requested workout with the specified name.

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