Instance Method

handle(intent:completion:)

Handles modifying the message attributes.

Required.

Declaration

func handle(intent: INSetMessageAttributeIntent, completion: @escaping (INSetMessageAttributeIntentResponse) -> 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 INSetMessageAttributeIntentResponse object containing the status of the request. This parameter must not be 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.