Protocol

INSetTaskAttributeIntentHandling

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

Declaration

@protocol INSetTaskAttributeIntentHandling

Overview

Use the methods of the INSetTaskAttributeIntentHandling protocol to resolve, confirm, and handle requests to modify the attributes of a task. SiriKit supports changing the task’s completion status and changing the location- or time-based triggers that you use to generate reminders. Adopt this protocol in an object of your Intents extension that is capable of handling the request directly or forwarding the request to your app or task management service.

Siri delivers an INSetTaskAttributeIntent object to your handler when the user asks to modify an existing task. The provided intent object contains descriptions of the tasks and the new values to apply. If a value is not provided for a given attribute, do not modify that attribute. Use the methods of this protocol to resolve the parameters and update the task.

Topics

Resolving the Intent Parameters

Confirming the Response

- confirmSetTaskAttribute:completion:

Confirms whether you can modify the task’s attributes.

Handling the Intent

- handleSetTaskAttribute:completion:

Handles the modification of the attributes of a task.

Required.

Relationships

Inherits From

See Also

Set Task Attributes

INSetTaskAttributeIntent

A request to modify the attributes of a task.

INSetTaskAttributeIntentResponse

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