resolveContent(for:with:)
Resolves the contents of the message.
Declaration
optional func resolveContent(for intent: INSendMessageIntent, with completion: @escaping @Sendable (INStringResolutionResult) -> Void)optional func resolveContent(for intent: INSendMessageIntent) async -> INStringResolutionResultParameters
- 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 with the Nsstring object that contains the proposed content of the message.
Discussion
This method resolves the contents of the message.