Class

INAddTasksIntentResponse

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

Declaration

class INAddTasksIntentResponse : INIntentResponse

Overview

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.

Topics

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.

Relationships

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.

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