Instance Method


Resolves the titles for the tasks.


optional func resolveTaskTitles(for intent: INAddTasksIntent, with completion: @escaping ([INSpeakableStringResolutionResult]) -> Void)



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


The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:


The details of your proposed resolutions. For successful resolutions, create an array of resolution objects with the title strings to use for the tasks.


Implement this method to resolve the titles for the taks. Use the intent object to obtain the titles suggested by the user. If the user doesn’t supply any task titles, return a response that indicates you need a value for the task titles. Alternatively, you could return a successful resolution containing a default task title.

See Also

Resolving the Intent Parameters