Class

INSetTaskAttributeIntentResponse

Your response to a request to modify the attributes of an existing task.

Declaration

class INSetTaskAttributeIntentResponse : INIntentResponse

Overview

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

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

Topics

Initializing the Response Object

init(code: INSetTaskAttributeIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INSetTaskAttributeIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSetTaskAttributeIntentResponseCode

Constants indicating the state of the response.

Providing the Task Details

var modifiedTask: INTask?

The modified task.

Relationships

Inherits From

Conforms To

See Also

Set Task Attributes

protocol INSetTaskAttributeIntentHandling

The handler interface for updating the attributes of an existing task.

class INSetTaskAttributeIntent

A request to modify the attributes of a task.

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