Contents

resolveAttribute(for:with:)

Resolves the attribute to apply to the messages.

Declaration

optional func resolveAttribute(for intent: INSetMessageAttributeIntent, with completion: @escaping  @Sendable (INMessageAttributeResolutionResult) -> Void)
optional func resolveAttribute(for intent: INSetMessageAttributeIntent) async -> INMessageAttributeResolutionResult

Parameters

  • intent:

    The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.

  • completion:

    The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:

    resolutionResult

    The object that contains the details of your proposed resolution. For successful resolutions, create a resolution object that contains the Inmessageattribute value that you plan to apply to the messages. If your app does not support modifications to the specified attribute, return a successful resolution and use your response object to report the failure when handling the intent.

Discussion

This method resolves the attribute to apply to the messages.