Instance Method

willBecomeActiveWithConversation:

Invoked just before the Messages extension becomes active.

Declaration

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

Parameters

conversation

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

Discussion

Override this method to perform any setup steps necessary before the Messages extension becomes active. The extension becomes active both when the user selects the extension from the app drawer, and when the user selects a message in the transcript that represents an MSMessage object created by a copy of the extension.

See Also

Managing the Extension’s State

activeConversation

The conversation currently displayed in the transcript.

- dismiss

Dismisses the extension and marks it for termination.

- didBecomeActiveWithConversation:

Invoked after the Messages extension becomes active.

- willResignActiveWithConversation:

Invoked just before the message resigns its active status.

- didResignActiveWithConversation:

Invoked after the message resigns its active status.