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


class INAddTasksIntentResponse : INIntentResponse


Use an INAddTasksIntentResponse object to return information about the task list that you created. Siri communicates the information from your response to the user at appropriate times.

You create an INAddTasksIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INAddTasksIntentHandling.


Initializing the Response Object

init(code: INAddTasksIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INAddTasksIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INAddTasksIntentResponseCode

Constants indicating the state of the response.

Providing the Task Information

var addedTasks: [INTask]?

The tasks that you added to the task list.

var modifiedTaskList: INTaskList?

The task list that you modified.


Inherits From

Conforms To

See Also

Add Task

protocol INAddTasksIntentHandling

The handler interface for adding tasks to a task list.

class INAddTasksIntent

A request to add tasks to a task list.