Protocol

INAddTasksIntentHandling

The handler interface for adding tasks to a task list.

Declaration

@protocol INAddTasksIntentHandling

Overview

Use the methods of the INAddTasksIntentHandling protocol to resolve, confirm, and handle requests to add tasks to a task list. Adopt this protocol in an object of your Intents extension that’s capable of handling the request directly or forwarding the request to your app or task management service.

Siri delivers an INAddTasksIntent object to your handler when the user asks to add tasks to a task list in your app. The provided intent object contains descriptions of the tasks and any triggers to associate with each task. Use the methods of this protocol to resolve the parameters and add the tasks.

Topics

Resolving the Intent Parameters

- resolveTargetTaskListForAddTasks:completion:

Resolves the task list to receive the new tasks.

Beta
- resolveTaskTitlesForAddTasks:withCompletion:

Resolves the titles for the tasks.

- resolveSpatialEventTriggerForAddTasks:withCompletion:

Resolves the location-based trigger associated with the new tasks.

- resolveTemporalEventTriggerForAddTasks:withCompletion:

Resolves the time-based trigger associated with the new tasks.

Deprecated
- resolvePriorityForAddTasks:withCompletion:

Resolves the priority associated with the new tasks.

Beta
- resolveTargetTaskListForAddTasks:withCompletion:

Called when it is time for you to resolve the task list to receive the new tasks.

Deprecated

Confirming the Response

- confirmAddTasks:completion:

Confirms whether you can add the tasks to the task list.

Handling the Intent

- handleAddTasks:completion:

Handles the creation of a task list.

Required.

Relationships

Inherits From

See Also

Add Task

INAddTasksIntent

A request to add tasks to a task list.

INAddTasksIntentResponse

Your response to a request to add tasks to a task list.

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