Class

INDeleteTasksIntentResponse

Your response to a request to delete tasks.

Declaration

class INDeleteTasksIntentResponse : INIntentResponse

Overview

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.

Topics

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.

Relationships

Inherits From

Conforms To

See Also

Delete a Task

protocol INDeleteTasksIntentHandling

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

Beta
class INDeleteTasksIntent

A request to delete one or more tasks.

Beta

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