didSelect(_:conversation:)
Invoked in response to the user selecting a message object in the transcript, after the system updates the conversation’s Selectedmessage property.
Declaration
func didSelect(_ message: MSMessage, conversation: MSConversation)Parameters
- message:
The message selected by the user.
- conversation:
The current conversation.
Mentioned in
Discussion
This method is called when the user selects one of your app’s message objects in the transcript while your extension is active. Both the message parameter and the conversation object’s selectedMessage property contain the message selected by the user.
If you need to access the previously selected message, override the willSelect(_:conversation:) method instead.
This method is called when a new message arrives while your extension is active. You receive notifications about messages sent using your extension only. You cannot interact with messages from other extensions.
The system does not call this method if the controller’s presentationStyle property is MSMessagesAppPresentationStyle.transcript, or if its presentationContext property is MSMessagesAppPresentationContext.media.