Contents

confirm(intent:completion:)

Confirms that you can modify the attributes.

Declaration

optional func confirm(intent: INSetMessageAttributeIntent, completion: @escaping  @Sendable (INSetMessageAttributeIntentResponse) -> Void)
optional func confirm(intent: INSetMessageAttributeIntent) async -> INSetMessageAttributeIntentResponse

Parameters

  • intent:

    The intent object that containing details about the user’s request. The information in this object has already been resolved by your handler object.

  • completion:

    The handler block to execute with your response. You must execute this handler whle implementing this method. This handler has no return value and takes the following parameter:

    response

    The Insetmessageattributeintentresponse object that contains the details to confirm with the user. This parameter must not be nil.

Discussion

This method validates that your messaging service is available and that modifying the specified messages is possible. At some point in your implementation, execute the provided completion block with an appropriate response object.