Handles modifying the message attributes.
Required.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
Framework
- Intents
Declaration
func handle(intent: INSet Message Attribute Intent, completion: @escaping (INSet Message Attribute Intent Response) -> Void)
Parameters
intent
The intent object that contains details about the user’s request. The information in this object has already been resolved and confirmed by your handler object.
completion
The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:
- response
The
INSet
object containing the status of the request. This parameter must not beMessage Attribute Intent Response nil
.
Discussion
Your implementation of this method must try to modify the attributes of the messages. The response object you provide should indicate whether you were successful at making the changes.