Contents

willResignActive(with:)

Invoked just before the message resigns its active status.

Declaration

func willResignActive(with conversation: MSConversation)

Parameters

  • conversation:

    The conversation that the user is currently viewing in the Messages app.

Discussion

Override this method to perform any cleanup activities just before the Messages extension is dismissed. Avoid doing any time-consuming tasks in your implementation. This method should return as quickly as possible. Also, avoid making asynchronous calls, because the extension might terminate before the asynchronous tasks have completed.

See Also

Managing the Extension’s State