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


class INSetTaskAttributeIntentResponse : INIntentResponse


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.


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.


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.