resolveSpeakableGroupName(for:with:)
Resolves the name of the group receiving the message.
Declaration
optional func resolveSpeakableGroupName(for intent: INSendMessageIntent, with completion: @escaping @Sendable (INSpeakableStringResolutionResult) -> Void)optional func resolveSpeakableGroupName(for intent: INSendMessageIntent) async -> INSpeakableStringResolutionResultParameters
- 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 name of the group recognized by your app.
Discussion
Implement this method if your app supports the sending messages to named groups. You can specify a group instead of, or in addition to, individual recipients.