The handler interface for modifying message attributes.


protocol INSetMessageAttributeIntentHandling


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 they have been read or flagged.

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 be modified 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.


Handling the Intent

Confirming the Response

func confirm(intent: INSetMessageAttributeIntent, completion: (INSetMessageAttributeIntentResponse) -> Void)

Called when it is time for you to confirm that you can modify the attributes.

Resolving the Intent Parameters


Inherits From

See Also

Set Message Attributes

class INSetMessageAttributeIntent

A request to modify the attributes of a message.

class INSetMessageAttributeIntentResponse

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