Instance Method

resolveTaskTitlesForCreateTaskList:withCompletion:

Resolves the tasks in a task list.

Declaration

- (void)resolveTaskTitlesForCreateTaskList:(INCreateTaskListIntent *)intent withCompletion:(void (^)(NSArray<INSpeakableStringResolutionResult *> *resolutionResults))completion;

Parameters

intent

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

completion

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:

resolutionResults

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

Discussion

Implement this method to resolve the tasks for a task list. Use the intent object to obtain the initial titles suggested by the user. If the user does not supply any task titles and you do not require an initial set of tasks, return a resolution of not required. Alternatively, you can supply a default task title and create a successful resolution.

See Also

Resolving the Intent Parameters

- resolveTitleForCreateTaskList:withCompletion:

Resolves the title of the task list.

- resolveGroupNameForCreateTaskList:withCompletion:

Resolves the intended group for the task list.