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


class INSetMessageAttributeIntentResponse : INIntentResponse


An INSetMessageAttributeIntentResponse object contains the status of modifying the specified messages. You create instances of this class when confirming or handling a set message attribute intent.

You create an INSetMessageAttributeIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your set message attribute handler object. For more information about implementing your handler object, see INSetMessageAttributeIntentHandling.


Initializing the Response Object

init(code: INSetMessageAttributeIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INSetMessageAttributeIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSetMessageAttributeIntentResponseCode

Constants that indicate the response state.


Inherits From

Conforms To

See Also

Set Message Attributes

protocol INSetMessageAttributeIntentHandling

An interface that handles modifying message attributes.

class INSetMessageAttributeIntent

A request to modify the attributes of a message.