willSelect(_:conversation:)
Invoked in response to the user selecting a message object in the transcript, before the system updates the conversation’s Selectedmessage property.
Declaration
func willSelect(_ 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. You can access the previously selected message (if any) from the conversation object’s selectedMessage property.
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.