Your response to a request to delete tasks.


class INDeleteTasksIntentResponse : INIntentResponse


Use an INDeleteTasksIntentResponse object to return information about your attempt to delete an existing task. Siri communicates the information from your response to the user at appropriate times.

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


Initializing the Response Object

init(code: INDeleteTasksIntentResponseCode, userActivity: NSUserActivity?)

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

Accessing the Deleted Tasks

var deletedTasks: [INTask]?

An array of tasks to delete.

Getting the Response Code

var code: INDeleteTasksIntentResponseCode

The code that indicates whether you successfully handled the intent.

enum INDeleteTasksIntentResponseCode

Constants that indicate the response state.


Inherits From

Conforms To

See Also

Delete a Task

protocol INDeleteTasksIntentHandling

An interface that handles requests to delete tasks from a task list.

class INDeleteTasksIntent

A request to delete one or more tasks.