resolveGroupName(for:with:)
Resolves the name of the group receiving the message.
Declaration
optional func resolveGroupName(for intent: INSendMessageIntent, with completion: @escaping @Sendable (INStringResolutionResult) -> Void)optional func resolveGroupName(for intent: INSendMessageIntent) async -> INStringResolutionResultParameters
- intent:
The intent object containing 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 at some point during your implementation of this method. This block has no return value and takes the following parameter:
- resolutionResult
The object containing the details of your proposed resolution. For successful resolutions, create a resolution with the Nsstring object that contains the name of the group recognized by your app.
Discussion
Implement this method if your app supports the sending messages to named groups. A group may be specified instead of, or in addition to, individual recipients.