didCancelSending(_:conversation:)
Invoked when the user deletes a message object from the Messages app’s input field.
Declaration
func didCancelSending(_ message: MSMessage, conversation: MSConversation)Parameters
- message:
The deleted message object.
- conversation:
The conversation that the user is currently viewing in the Messages app.
Mentioned in
Discussion
Override this method to respond when a message is canceled. This method is called if you use the conversation’s insert(_:completionHandler:) method to add an MSMessage object to the Messages app’s input field, and the user subsequently deletes the message object.
The system does not call this method if the controller’s presentationStyle property is MSMessagesAppPresentationStyle.transcript, or if its presentationContext property is MSMessagesAppPresentationContext.media.