Instance Method

willResignActiveWithConversation:

Invoked just before the message resigns its active status.

Declaration

- (void)willResignActiveWithConversation:(MSConversation *)conversation;

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

activeConversation

The conversation currently displayed in the transcript.

- dismiss

Dismisses the extension and marks it for termination.

- willBecomeActiveWithConversation:

Invoked just before the Messages extension becomes active.

- didBecomeActiveWithConversation:

Invoked after the Messages extension becomes active.

- didResignActiveWithConversation:

Invoked after the message resigns its active status.