Protocol

INSetMessageAttributeIntentHandling

An interface that handles modifying message attributes.

Declaration

@protocol INSetMessageAttributeIntentHandling

Overview

Use the methods of the INSetMessageAttributeIntentHandling protocol to resolve, confirm, and handle requests to modify attributes of a user’s messages. Adopt this protocol in an object of your Intents extension that is capable of updating the state of messages, such as whether a user has read or flagged the message.

Siri delivers an INSetMessageAttributeIntent object to your handler when the user asks to modify one or more messages. The provided intent object contains the identifier strings for the messages to modify and information about which attributes to set. Use the methods of this protocol to resolve whether you can modify the messages in the intended way and to make the modifications.

Topics

Resolving the Intent Parameters

- resolveAttributeForSetMessageAttribute:withCompletion:

Resolves the attribute to apply to the messages.

Confirming the Response

- confirmSetMessageAttribute:completion:

Confirms that you can modify the attributes.

Handling the Intent

- handleSetMessageAttribute:completion:

Handles modifying the message attributes.

Required.

Relationships

Inherits From

See Also

Set Message Attributes

INSetMessageAttributeIntent

A request to modify the attributes of a message.

INSetMessageAttributeIntentResponse

Your app’s response to a set message attribute intent.